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

SI-2464 Resiliance against missing InnerClass attributes #2639

Merged
merged 1 commit into from Jun 8, 2013

Conversation

retronym
Copy link
Member

@retronym retronym commented Jun 6, 2013

A classfile in the wild related to Vaadin lacked the InnerClasses
attribute. As such, our class file parser treated a nested enum
class as top-level, which led to a crash when trying to find its
linked module.

More details of the investigation are available in the JIRA comments.

The test introduces a new facility to rewrite classfiles.

This commit turns this situation into a logged warning, rather
than crashing. Code by @paulp, test by yours truly.

Review by @paulp

A classfile in the wild related to Vaadin lacked the InnerClasses
attribute. As such, our class file parser treated a nested enum
class as top-level, which led to a crash when trying to find its
linked module.

More details of the investigation are available in the JIRA comments.

The test introduces a new facility to rewrite classfiles.

This commit turns this situation into a logged warning, rather
than crashing. Code by @paulp, test by yours truly.
@ghost ghost assigned paulp Jun 6, 2013
@paulp
Copy link
Contributor

paulp commented Jun 6, 2013

How could it look any less than G to M? I was sure hoping to entice someone else to write that test though. May as well wish for a unicorn. Thanks a lot. LGTM.

@som-snytt
Copy link
Contributor

You needed a test? Did you offer Skittles? :(

paulp added a commit that referenced this pull request Jun 8, 2013
SI-2464 Resiliance against missing InnerClass attributes
@paulp paulp merged commit 20f8eac into scala:master Jun 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants