Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eclipse-plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
asm
eclipse-plugin
Commits
ed9c4a6b
Commit
ed9c4a6b
authored
Oct 25, 2018
by
Andrey Loskutov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use latest ASM version to support Java 10+
parent
23edc025
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
asm-build.properties
asm-build.properties
+1
-0
src/de/loskutov/bco/asm/CommentedASMifierClassVisitor.java
src/de/loskutov/bco/asm/CommentedASMifierClassVisitor.java
+2
-2
src/de/loskutov/bco/asm/CommentedClassVisitor.java
src/de/loskutov/bco/asm/CommentedClassVisitor.java
+2
-2
src/de/loskutov/bco/asm/DecompilerHelper.java
src/de/loskutov/bco/asm/DecompilerHelper.java
+1
-2
src/de/loskutov/bco/asm/DecompilerOptions.java
src/de/loskutov/bco/asm/DecompilerOptions.java
+1
-1
No files found.
asm-build.properties
0 → 100644
View file @
ed9c4a6b
eclipse.home
=
D:/work/eclipse-SDK-4.9/eclipse
\ No newline at end of file
src/de/loskutov/bco/asm/CommentedASMifierClassVisitor.java
View file @
ed9c4a6b
...
@@ -45,7 +45,7 @@ public class CommentedASMifierClassVisitor extends ASMifier implements ICommente
...
@@ -45,7 +45,7 @@ public class CommentedASMifierClassVisitor extends ASMifier implements ICommente
private
final
ClassNode
classNode
;
private
final
ClassNode
classNode
;
private
CommentedASMifierClassVisitor
(
ClassNode
classNode
,
final
DecompilerOptions
options
,
String
name
,
int
id
)
{
private
CommentedASMifierClassVisitor
(
ClassNode
classNode
,
final
DecompilerOptions
options
,
String
name
,
int
id
)
{
super
(
Opcodes
.
ASM6
,
name
,
id
);
super
(
DecompilerOptions
.
LATEST_ASM_VERSION
,
name
,
id
);
this
.
classNode
=
classNode
;
this
.
classNode
=
classNode
;
this
.
options
=
options
;
this
.
options
=
options
;
showLines
=
options
.
modes
.
get
(
BCOConstants
.
F_SHOW_LINE_INFO
);
showLines
=
options
.
modes
.
get
(
BCOConstants
.
F_SHOW_LINE_INFO
);
...
@@ -320,7 +320,7 @@ public class CommentedASMifierClassVisitor extends ASMifier implements ICommente
...
@@ -320,7 +320,7 @@ public class CommentedASMifierClassVisitor extends ASMifier implements ICommente
private
ASMifier
getDummyVisitor
(){
private
ASMifier
getDummyVisitor
(){
if
(
dummyAnnVisitor
==
null
)
{
if
(
dummyAnnVisitor
==
null
)
{
dummyAnnVisitor
=
new
ASMifier
(
Opcodes
.
ASM6
,
""
,
-
1
)
{
dummyAnnVisitor
=
new
ASMifier
(
DecompilerOptions
.
LATEST_ASM_VERSION
,
""
,
-
1
)
{
@Override
@Override
public
void
visitAnnotationEnd
()
{
public
void
visitAnnotationEnd
()
{
text
.
clear
();
text
.
clear
();
...
...
src/de/loskutov/bco/asm/CommentedClassVisitor.java
View file @
ed9c4a6b
...
@@ -44,7 +44,7 @@ public class CommentedClassVisitor extends Textifier implements ICommentedClassV
...
@@ -44,7 +44,7 @@ public class CommentedClassVisitor extends Textifier implements ICommentedClassV
private
int
currentInsn
;
private
int
currentInsn
;
public
CommentedClassVisitor
(
ClassNode
classNode
,
final
DecompilerOptions
options
)
{
public
CommentedClassVisitor
(
ClassNode
classNode
,
final
DecompilerOptions
options
)
{
super
(
Opcodes
.
ASM6
);
super
(
DecompilerOptions
.
LATEST_ASM_VERSION
);
this
.
classNode
=
classNode
;
this
.
classNode
=
classNode
;
this
.
options
=
options
;
this
.
options
=
options
;
raw
=
!
options
.
modes
.
get
(
BCOConstants
.
F_SHOW_RAW_BYTECODE
);
raw
=
!
options
.
modes
.
get
(
BCOConstants
.
F_SHOW_RAW_BYTECODE
);
...
@@ -573,7 +573,7 @@ public class CommentedClassVisitor extends Textifier implements ICommentedClassV
...
@@ -573,7 +573,7 @@ public class CommentedClassVisitor extends Textifier implements ICommentedClassV
private
Textifier
getDummyVisitor
(){
private
Textifier
getDummyVisitor
(){
if
(
dummyAnnVisitor
==
null
)
{
if
(
dummyAnnVisitor
==
null
)
{
dummyAnnVisitor
=
new
Textifier
(
Opcodes
.
ASM6
)
{
dummyAnnVisitor
=
new
Textifier
(
DecompilerOptions
.
LATEST_ASM_VERSION
)
{
@Override
@Override
public
void
visitAnnotationEnd
()
{
public
void
visitAnnotationEnd
()
{
text
.
clear
();
text
.
clear
();
...
...
src/de/loskutov/bco/asm/DecompilerHelper.java
View file @
ed9c4a6b
...
@@ -13,7 +13,6 @@ import java.util.ArrayList;
...
@@ -13,7 +13,6 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.List
;
import
org.objectweb.asm.ClassReader
;
import
org.objectweb.asm.ClassReader
;
import
org.objectweb.asm.Opcodes
;
import
org.objectweb.asm.tree.ClassNode
;
import
org.objectweb.asm.tree.ClassNode
;
import
org.objectweb.asm.util.Printer
;
import
org.objectweb.asm.util.Printer
;
import
org.objectweb.asm.util.TraceClassVisitor
;
import
org.objectweb.asm.util.TraceClassVisitor
;
...
@@ -28,7 +27,7 @@ public class DecompilerHelper {
...
@@ -28,7 +27,7 @@ public class DecompilerHelper {
public
static
DecompiledClass
getDecompiledClass
(
final
byte
[]
bytes
,
public
static
DecompiledClass
getDecompiledClass
(
final
byte
[]
bytes
,
DecompilerOptions
options
)
throws
UnsupportedClassVersionError
{
DecompilerOptions
options
)
throws
UnsupportedClassVersionError
{
ClassReader
cr
=
new
ClassReader
(
bytes
);
ClassReader
cr
=
new
ClassReader
(
bytes
);
ClassNode
cn
=
new
ClassNode
(
Opcodes
.
ASM6
);
ClassNode
cn
=
new
ClassNode
(
DecompilerOptions
.
LATEST_ASM_VERSION
);
int
crFlags
=
0
;
int
crFlags
=
0
;
if
(
options
.
modes
.
get
(
BCOConstants
.
F_EXPAND_STACKMAP
))
{
if
(
options
.
modes
.
get
(
BCOConstants
.
F_EXPAND_STACKMAP
))
{
crFlags
|=
ClassReader
.
EXPAND_FRAMES
;
crFlags
|=
ClassReader
.
EXPAND_FRAMES
;
...
...
src/de/loskutov/bco/asm/DecompilerOptions.java
View file @
ed9c4a6b
...
@@ -13,7 +13,7 @@ import org.objectweb.asm.Opcodes;
...
@@ -13,7 +13,7 @@ import org.objectweb.asm.Opcodes;
public
class
DecompilerOptions
{
public
class
DecompilerOptions
{
public
static
int
LATEST_VERSION
=
Opcodes
.
ASM7_EXPERIMENTAL
;
public
static
int
LATEST_
ASM_
VERSION
=
Opcodes
.
ASM7_EXPERIMENTAL
;
public
final
String
fieldFilter
;
public
final
String
fieldFilter
;
public
final
String
methodFilter
;
public
final
String
methodFilter
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment