bugs.java.com
JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... Object.class. The synthetic static helper method class ...
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... Object.class. The synthetic static helper method class ...
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.
static String formatter(Object o) { String formatted = "unknown"; if (o instanceof Integer i) {.First and foremost, this approach allows coding errors to remain hidden because we have used an overly general control construct.