Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320875

Summary: Move to J2SE-1.5
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P2 CC: daniel_megert, darin.eclipse, deepakazad, raksha.vasisht, remy.suen, rthakkar
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 322817    
Bug Blocks:    
Attachments:
Description Flags
test project settings none

Description Markus Keller CLA 2010-07-26 05:39:04 EDT
Move the ExecutionEnvironment of the following plug-ins to J2SE-1.5:

org.eclipse.jdt.ui
org.eclipse.jdt.junit
org.eclipse.jdt.ui.tests
org.eclipse.jdt.ui.tests.refactoring
org.eclipse.jdt.text.tests
Comment 1 Markus Keller CLA 2010-07-26 05:44:40 EDT
To avoid too many false warnings, I will run a few clean-ups (e.g. add @Override) and the Infer Generic Type Arguments refactoring.

Too late for M1, since all changes need to be carefully verified and have the potential to break the build.
Comment 2 Markus Keller CLA 2010-08-15 18:54:31 EDT
I've 1.5-ified org.eclipse.jdt.junit. Previous version was tag v20100810-0800.
Comment 3 Markus Keller CLA 2010-08-27 12:36:16 EDT
Created attachment 177630 [details]
test project settings

This patch converts the test projects to 1.5 (just sets the compliance options and disables generics-related warnings). Without this, new JUnit launch configurations are created with a 1.4 VM and fail at run time because jdt.junit is already generified.

Released to HEAD.
Comment 4 Markus Keller CLA 2010-08-27 12:46:29 EDT
I've seen some more spurious errors in like bug 305259 in the test projects. Filed bug 323855 for the new issues.
Comment 5 Markus Keller CLA 2010-10-25 11:31:53 EDT
I'm making progress on converting jdt.ui, but I still have some wrongly inferred type arguments (mainly because the DOM AST is not yet generic). The AST and ASTRewrite APIs are also the main source for unavoidable type safety warnings which make it hard to see the real type safety problems (bug 322817).
Comment 6 Markus Keller CLA 2011-03-01 06:56:05 EST
Fixed in HEAD (right after tag v20110301-0630_before15 in org.eclipse.jdt.ui).