New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test of ASM bug 317792 #607
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Godin Thx! Commented on some formal issues.
final byte[] bytes = instrumenter.instrument(cw.toByteArray(), ""); | ||
|
||
final TargetLoader targetLoader = new TargetLoader(); | ||
final Class outer = targetLoader.add(ResizeInstructionsTest.class, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Godin Raw Class
types give a compiler warning, Class<?>
fixes the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marchof fixed
final TargetLoader targetLoader = new TargetLoader(); | ||
final Class outer = targetLoader.add(ResizeInstructionsTest.class, | ||
TargetLoader.getClassDataAsBytes(ResizeInstructionsTest.class)); | ||
final Class inner = targetLoader.add(Inner.class, bytes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Godin Same here: Raw Class
types give a compiler warning, Class<?>
fixes the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marchof fixed
* Test of ASM bug | ||
* <a href= "https://gitlab.ow2.org/asm/asm/issues/317630">#317630</a> that | ||
* caused {@code java.lang.ClassNotFoundException}. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Godin For consistency this test should also have a descriptive method name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marchof renamed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Godin LGTM now, thanks!
https://gitlab.ow2.org/asm/asm/issues/317792