Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366986 - Support setting the Java 7 facet when importing a JavaEE archive targeted to a runtime that supports Java 7
Summary: Support setting the Java 7 facet when importing a JavaEE archive targeted to ...
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.3.2   Edit
Assignee: Roberto Sanchez Herrera CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on: 361555
Blocks:
  Show dependency tree
 
Reported: 2011-12-16 16:23 EST by Roberto Sanchez Herrera CLA
Modified: 2011-12-19 17:21 EST (History)
3 users (show)

See Also:
cbridgha: review+


Attachments
Patch for R3_3_maintenance and HEAD (1.30 KB, patch)
2011-12-16 16:45 EST, Roberto Sanchez Herrera CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Sanchez Herrera CLA 2011-12-16 16:23:06 EST
Bug for fixing problem in WTP 3.3.2 and 3.4

+++ This bug was initially created as a clone of Bug #361555 +++

Build Identifier: M20110210-1200

In our adopter product, users will be able to import JavaEE archives targeting runtimes that support Java 7.  Currently, the Java facet is set to 1.6 when importing.  It looks like the J2EEComponentImportDataModelProvider class does not check for 1.7 compatibility.    

Reproducible: Always

Steps to Reproduce:
1.  Import an EAR or War file
2.  Set the target runtime to something that supports Java 7
3.  After import, the Java Facet is set to 1.6
Comment 1 Roberto Sanchez Herrera CLA 2011-12-16 16:45:54 EST
Created attachment 208511 [details]
Patch for R3_3_maintenance and HEAD

The attached patch was created using R3_3_maintenance and can be applied to HEAD also.
Comment 2 Chuck Bridgham CLA 2011-12-19 10:24:24 EST
approved
Comment 3 Roberto Sanchez Herrera CLA 2011-12-19 17:21:59 EST
Code committed to R3_3_maintenance and HEAD for WTP 3.3.2 and 3.4