Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369966 - JavaFacetUtil needs to be updated to include Java 7
Summary: JavaFacetUtil needs to be updated to include Java 7
Status: RESOLVED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: jst.ws (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3.2   Edit
Assignee: Keith Chong CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard: PMC_Approved
Keywords:
Depends on: 369959 369967
Blocks:
  Show dependency tree
 
Reported: 2012-01-27 11:41 EST by Keith Chong CLA
Modified: 2012-02-02 13:39 EST (History)
3 users (show)

See Also:
keith.chong.ca: pmc_approved? (david_williams)
keith.chong.ca: pmc_approved? (raghunathan.srinivasan)
keith.chong.ca: pmc_approved? (naci.dai)
keith.chong.ca: pmc_approved? (deboer)
cbridgha: pmc_approved+
keith.chong.ca: pmc_approved? (kaloyan)
keith.chong.ca: pmc_approved? (cbridgha)


Attachments
Apply to org.eclipse.jst.ws.consumption (1.82 KB, patch)
2012-02-01 13:39 EST, Keith Chong CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Chong CLA 2012-01-27 11:41:19 EST
+++ This bug was initially created as a clone of Bug #369959 +++

Currently, the highest java facet version it supports is Java 6.  (JavaFacet.JAVA_60)

There is a JavaFacet.VERSION_1_7 that should be added.

Open bug for WTP 3.3 maintenance branch.
Comment 1 Keith Chong CLA 2012-02-01 13:37:41 EST
Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such.
This is required for Java 7 support.

Is there a work-around? If so, why do you believe the work-around is insufficient? 
No workaround

How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? 
This has been manually tested for the same fix against 3.2.5.

Give a brief technical overview. Who has reviewed this fix?
It's a simple fix, adding an extra condition to consider Java 7 (see patch)

    else if (jdkComplianceLevel.equals("1.7"))
    {
      javaFacetVersion = JavaFacet.VERSION_1_7;
    }


What is the risk associated with this fix? 
Low risk.
Comment 2 Keith Chong CLA 2012-02-01 13:39:52 EST
Created attachment 210393 [details]
Apply to org.eclipse.jst.ws.consumption

Same patch as for 369959.  Version update to plugin not required.
Comment 3 Keith Chong CLA 2012-02-01 13:42:00 EST
Seeking PMC approval for this fix for WTP 3.3.2.
Comment 4 Keith Chong CLA 2012-02-01 15:23:57 EST
Thanks Neil.
Comment 5 Chuck Bridgham CLA 2012-02-02 09:19:35 EST
This was approved yesterday..
Comment 6 Keith Chong CLA 2012-02-02 13:39:57 EST
Resolving.