Skip to content
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

Merged
merged 1 commit into from Oct 9, 2017
Merged

Add test of ASM bug 317792 #607

merged 1 commit into from Oct 9, 2017

Conversation

Godin
Copy link
Member

@Godin Godin commented Oct 7, 2017

Copy link
Member

@marchof marchof left a 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,
Copy link
Member

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.

Copy link
Member Author

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);
Copy link
Member

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.

Copy link
Member Author

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}.
*/
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marchof renamed

Copy link
Member

@marchof marchof left a 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!

@marchof marchof merged commit 9924475 into master Oct 9, 2017
@marchof marchof deleted the asm-317792 branch October 9, 2017 12:35
@Godin Godin moved this from TODO to DONE in Update ASM to 6.0 Oct 9, 2017
@jacoco jacoco locked as resolved and limited conversation to collaborators Jan 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants