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

Bug 366986

Summary: Support setting the Java 7 facet when importing a JavaEE archive targeted to a runtime that supports Java 7
Product: [WebTools] WTP Java EE Tools Reporter: Roberto Sanchez Herrera <shr31223>
Component: jst.j2eeAssignee: Roberto Sanchez Herrera <shr31223>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, ktsao, shr31223
Version: 3.3.1Flags: cbridgha: review+
Target Milestone: 3.3.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 361555    
Bug Blocks:    
Attachments:
Description Flags
Patch for R3_3_maintenance and HEAD none

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