Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Java Compiler Compliance Level not working
Java Compiler Compliance Level not working [message #1809392] Mon, 15 July 2019 08:04 Go to next message
Eclipse UserFriend
Hello everyone,,
I'm working on a project that requires Java 1.5 compliance. Yes I know that's old, but that's what is being used. There are no project specific settings, so the main setting should be used.

I set the compiler compliance level to 1.5, yet I was able to use the String:isEmpty() function in code without the Eclipse compiler complaining at all. This resulted in an application that is not runnable using Java 1.5 as the String::isEmpty() function was added in Java 6.

Shouldn't the Compiler Compliance Level setting notify users if a function is being used that isn't compatible with the version set???
Re: Java Compiler Compliance Level not working [message #1809501 is a reply to message #1809392] Tue, 16 July 2019 23:43 Go to previous messageGo to next message
Eclipse UserFriend
Which Eclipse version are you using?
Re: Java Compiler Compliance Level not working [message #1809512 is a reply to message #1809501] Wed, 17 July 2019 03:51 Go to previous message
Eclipse UserFriend
Please see that the compiler compliance only determines which language features can be used, while the problem you are describing is a matter of the runtime libraries.
Please make sure that the project is configured to compile against the correct version of JRE.
Previous Topic:Error in reinstalling Eclipse
Next Topic:Java Search by type seems broken
Goto Forum:
  


Current Time: Sat Apr 26 18:36:11 EDT 2025

Powered by FUDForum. Page generated in 0.03282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top