JDK-8073372 : Redundant CONSTANT_Class entry not generated for inlined constant
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-02-17
  • Updated: 2015-09-29
  • Resolved: 2015-05-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60Fixed 9 b68Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Description
public class T {
    public static final String TEXT = B.NAME;
}

public class B {
    public static final String NAME = "my-name";
}

There is no CONSTANT_Class entry of class B in T.class.  If B.NAME is referenced from a method body, the redundant constant pool entry is present.


Comments
Mandy, thanks for the info
19-02-2015

Vicente - the langtools fix has to wait until JDK-8073374 is fixed. Otherwise, the jdk build will fail jdeps verification.
19-02-2015