JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... For example, the following program would fail at runtime: <pre> class SuperInitBug { static class S { void hi() { System.out.println("You ...
Feb 5, 1997 ... For example, the following program would fail at runtime: <pre> class SuperInitBug { static class S { void hi() { System.out.println("You ...
Jul 12, 2016 ... class), nulls, annotation values, and array data. (See JDK-8161250 for an example; there are many more coming in Project Valhalla.) In order ...
... string "that represents the original simple name of C, as given in the source code from which this class file was compiled.". That is, it gives the true ...
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.
Compile and run this program: public class xx { public static void main (String [] args) throws Exception { System.out.println (xx.class.getMethod ("foo").getGenericReturnType ()); } public java.util.Map.Entry<String, String> foo () { return null; } } 2.
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.
FULL PRODUCT VERSION : java version "1.5.0_04" Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05) Java HotSpot (TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows 2000 [Version 5.00.2195] A DESCRIPTION OF THE PROBLEM : In the class BasicComboBoxUI in the method ...