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

seek clarification about necessary and sufficient conditions for inclusion in InnerClasses JVM attribute #6759

Closed
scabug opened this issue Dec 3, 2012 · 2 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Dec 3, 2012

The JVM spec states in Sec. 4.7.6 that for each CONSTANT_Class_info (constant-pool entry) which represents a class or interface that is not a member of a package an entry should be made in the class' InnerClasses JVM attribute.

According to the above, the mere fact an inner class is mentioned in, for example, an annotation wouldn't be reason enough for adding it to the InnerClasses JVM attribute.

However that's what GenASM (apparently?) does.

As an aside, this issue came up in the context of GenBCode, where refreshInnerClasses() in file BCodeOpt.scala follows a literal interpretation of the spec.

@scabug
Copy link
Author

scabug commented Dec 3, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6759?orig=1
Reporter: @magarciaEPFL
See #6546

@scabug
Copy link
Author

scabug commented Sep 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants