Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345510 - Using methods available in Java 6 only does not cause compile error
Summary: Using methods available in Java 6 only does not cause compile error
Status: CLOSED WONTFIX
Alias: None
Product: Jetty
Classification: RT
Component: build (show other bugs)
Version: 7.4.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 7.4.x   Edit
Assignee: Jesse McConnell CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 20:49 EDT by Michael Gorovoy CLA
Modified: 2011-07-19 16:47 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gorovoy CLA 2011-05-11 20:49:54 EDT
I've been able to use String.isEmpty() method in my code, and neither Eclipse, nor Maven cli compile had given me a compile error.
Comment 1 Jan Bartel CLA 2011-06-30 00:24:54 EDT
I'm changing this to an enhancement, as perhaps there is something that can be done with maven-toolchain to set the jdk ... although we don't want to have to set toolchain.xml files in everyone's .m2 dir in order to do a compile ...
Comment 2 Jesse McConnell CLA 2011-07-19 15:19:00 EDT
properly configured eclipse this is not a big deal and I ran across this the other day with a commit of gregs and eclipse had flagged it automatically for me...

so I don't think its worth spending any time, as a developer just make sure your toolchain is setup correctly

if this becomes a systemic issue that starts chewing up more time then the odd committ here and there then I'll reopen and investigate further
Comment 3 Michael Gorovoy CLA 2011-07-19 16:47:43 EDT
I agree that this is not a big deal. I suspect this might have been caused by an older version of m2eclipse not importing the compiler compliance settings correctly. I've re-imported the projects into my workspace following the move to Git and this time it got set up properly.

-Michael