Community
Participate
Working Groups
Build ID: M20080911-1700 Steps To Reproduce: 1. Make JAVA_HOME a java6 jdk, select that in eclipse as jre 2. Set java compiler compliance level in Eclipse to 1.5 3. Write code to call String.isEmpty(). Works in Eclipse, will fail (to load) in target java5 environment More information:
This is not controlled by compliance level, but simply by the choice of the library you use on the classpath. If you develop for Java 5, you should point at a Java 5 library on your classpath.
Sounds like bug 231260 though I'm surprised it hasn't been closed as yet.
Thanks Remy. Will mark as a dup.
*** This bug has been marked as a duplicate of bug 231260 ***
Verified for 3.5M4