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

Bug 361555

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: Kim Tsao <ktsao>
Component: jst.j2eeAssignee: Kim Tsao <ktsao>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, shr31223
Version: 3.2.5Flags: ccc: review+
Target Milestone: 3.2.5 P   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 366986    
Attachments:
Description Flags
proposed change for J2EEComponentImportDataModelProvider ccc: iplog+

Description Kim Tsao CLA 2011-10-20 10:59:51 EDT
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 Kim Tsao CLA 2011-10-20 11:00:42 EDT
Created attachment 205640 [details]
proposed change for J2EEComponentImportDataModelProvider
Comment 2 Carl Anderson CLA 2011-11-28 12:31:34 EST
Committed to R3_2_5_patches