Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Jamie Mansfield
asm
Commits
5074bdc9
Commit
5074bdc9
authored
Aug 02, 2018
by
Remi Forax
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix CheckMethodAdapter to allow <init> as name when doing a LDC of a
method handle
parent
f5270ecd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
asm-util/src/main/java/org/objectweb/asm/util/CheckMethodAdapter.java
.../main/java/org/objectweb/asm/util/CheckMethodAdapter.java
+4
-1
No files found.
asm-util/src/main/java/org/objectweb/asm/util/CheckMethodAdapter.java
View file @
5074bdc9
...
...
@@ -1199,7 +1199,10 @@ public class CheckMethodAdapter extends MethodVisitor {
}
else
{
checkMethodDescriptor
(
this
.
version
,
handle
.
getDesc
());
}
checkMethodIdentifier
(
this
.
version
,
handle
.
getName
(),
"handle name"
);
String
handleName
=
handle
.
getName
();
if
(!(
"<init>"
.
equals
(
handleName
)
&&
tag
==
Opcodes
.
H_NEWINVOKESPECIAL
))
{
checkMethodIdentifier
(
this
.
version
,
handleName
,
"handle name"
);
}
}
else
if
(
value
instanceof
ConstantDynamic
)
{
if
((
version
&
0xFFFF
)
<
Opcodes
.
V11
)
{
throw
new
IllegalArgumentException
(
"ldc of a ConstantDynamic requires at least version 11"
);
...
...
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