Summary: | Compiler compliance level 5.0 and String isEmpty(); | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jean-Luc Geering <jgeering> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | david_audel, Mark.Swanson, njbartlett, Olivier_Thomann, remy.suen |
Version: | 3.3.2 | ||
Target Milestone: | 3.5 M4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Jean-Luc Geering
2008-05-09 04:02:27 EDT
I don't think there is any way for the compiler to know that a method was added in Java 5 or Java 6. The compiler is using the libraries that you set up on the classpath. So if you are setting the compliance to 1.5, you should use 1.5 libraries. The @since information is not stored in the .class files, so there is no way for the compiler to retrieve this information from the binaries themselves. Like the -source flag in javac, the compiler compliance level dictates only which Java language features are used. It has no effect on available APIs. Closing as INVALID since the described problem is not a bug *** Bug 252220 has been marked as a duplicate of this bug. *** Verified for 3.5M4 |