Bug 320875 - Move to J2SE-1.5
Summary: Move to J2SE-1.5
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 322817
Blocks:
  Show dependency tree
 
Reported: 2010-07-26 05:39 EDT by Markus Keller CLA
Modified: 2011-03-01 06:56 EST (History)
6 users (show)

See Also:


Attachments
test project settings (30.39 KB, patch)
2010-08-27 12:36 EDT, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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).