-
Bug
-
Resolution: Not an Issue
-
P4
-
repo-valhalla
-
generic
-
generic
See https://bugs.openjdk.java.net/browse/JDK-8244713?focusedCommentId=14364710&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14364710
for a detailed description of how the various attributes applicable to ClassFile listed in "JVMS Table 4.7-C. Predefined class file attributes" are handled.
As of
When
fields, methods and Code attributes would land up (presumably) (only) in the particular class file to where they are destined.
That still leaves the question of what is the right behavior for attributes attached to ClassFile and whether what is described in
https://bugs.openjdk.java.net/browse/JDK-8244713?focusedCommentId=14364710&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14364710 is the final behavior we want.
The present ticket is raised for the spec lead to address this question in due course. Please raise a ticket against javac is changes are called for.
I think the behavior implemented in https://bugs.openjdk.java.net/browse/JDK-8244713?focusedCommentId=14364710&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14364710 is mostly reasonable.
Two open questions:
(1) Should V$ref.class be flagged synthetic ? It is not ATM since we will be eventually emitting non-synthetic methods into it.
(2) Should annotations be carried over ? They are not ATM.
- relates to
-
JDK-8244713 [lworld] V.ref class should not inadvertently carry over attributes from V.class
-
- Resolved
-