As Nishant already pointed out in the comments, you’ve found a bug here.
This bug initially was reported in 2004 (>9 years ago!?!!) and this bug seems not to be fixed very soon (or ever). I tested it on several Eclipse version, even on Eclipse Juno SR2, and the bug is still there.
More Related Contents:
- System.console() returns null
- java.io.Console support in Eclipse IDE
- Colorize logs in eclipse console
- How to import a jar in Eclipse?
- Eclipse: How to build an executable jar with external jar?
- Access restriction: The type ‘Application’ is not API (restriction on required library rt.jar)
- Class has been compiled by a more recent version of the Java Environment
- Break when exception is thrown
- Why does Eclipse complain about @Override on interface methods?
- Why is JavaFX is not included in OpenJDK 8 on Ubuntu Wily (15.10)?
- How do I add a resources folder to my Java project in Eclipse
- Browse for image file and display it using Java Swing
- Cannot change version of project facet Dynamic Web Module to 3.0?
- “The public type must be defined in its own file” error in Eclipse [duplicate]
- java.lang.OutOfMemoryError: PermGen space [closed]
- Why would one declare a Java interface method as abstract?
- Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1) – PhoneGap
- Android – How to create clickable listview?
- Compiling to a specific JRE with Eclipse
- “Faceted Project Problem (Java Version Mismatch)” error message
- Where is the correct location to put Log4j.properties in an Eclipse project?
- How to reference javadocs to dependencies in Maven’s eclipse plugin when javadoc not attached to dependency
- How to use Special Chars in Java/Eclipse
- JavaFX Maven Plug-in: No plugin found for prefix ‘jfx’ in the current project and in the plugin groups
- Unable to connect to database (No suitable driver found)
- How can i replace type_orientation (is deprecated) for android 4.0.3?
- An error has occured. Please see log file – eclipse juno
- What different breakpoint icons mean in Eclipse?
- Any way to generate ant build.xml file automatically from Eclipse?
- How to disable TestNG test based on a condition