JDK-8161256: general data in constant pools - Java Issue Tracker
Jul 12, 2016 ... This scheme is much more future-proof, and can represent future types (like values and flat value-array constants) without new constant pool ...
Jul 12, 2016 ... This scheme is much more future-proof, and can represent future types (like values and flat value-array constants) without new constant pool ...
It's an error in java.lang.String source code which is the same for all JDK distributions.I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.
JDK-8193302 : Javac AssertionError: typeSig ERROR on usage of @Generated Type: Bug Component: tools Sub-Component: javac Affected Version: 9,9.0.1,10 Priority: P3 Status: Closed Resolution: Fixed OS: generic CPU: x86_64 Submitted: 2017-12-08 Updated: 2018-06-30 Resolved: 2018-06-13
The workaround is of course simple: Dont make your fields public. Unfortunately this is difficult when using software that is affected by this bug and for which no source code is available. It simply breaks when changing from Java 6 to Java 7 without giving any error messages.
at com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:49) Error: line (0) The compiler did not terminate normally. Exit code is 4.EVALUATION Summary: If there are errors getting the entry, the return value is always 0. An error in this case could be out of memory, or a corrupt jar file.