Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324775 - JavaEEQuickPeek not returning runtime's highest supported version
Summary: JavaEEQuickPeek not returning runtime's highest supported version
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.2   Edit
Assignee: Jason Peterson CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard: PMC_approved
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 13:54 EDT by Jason Peterson CLA
Modified: 2010-09-15 09:25 EDT (History)
3 users (show)

See Also:
david_williams: pmc_approved+
jasonpet: pmc_approved? (raghunathan.srinivasan)
jasonpet: pmc_approved? (naci.dai)
deboer: pmc_approved+
jasonpet: pmc_approved? (neil.hauge)
jasonpet: pmc_approved? (kaloyan)
cbridgha: review+


Attachments
patch (9.46 KB, patch)
2010-09-08 13:54 EDT, Jason Peterson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Peterson CLA 2010-09-08 13:54:14 EDT
Created attachment 178427 [details]
patch

In WTP 3.2 the import code was updated to use the selected runtime's highest supported version when importing projects with no deployment descriptor.  However, this code does not affect modules that were imported as binary.  The version for these modules can be determined by using JavaEEQuickPeek.  However, this code currently just defaults the version to EE5 for binary modules that contain no DD.  

The attached patch updates the JavaEEQuickPeek to be consistent with the import operation and returns an EE6 version if the runtime supports it and EE5 if it does not.
Comment 1 Chuck Bridgham CLA 2010-09-08 14:32:31 EDT
approved..   changes are not actually that big, lots of repetitive fixes
Comment 2 Jason Peterson CLA 2010-09-08 14:59:14 EDT
 * 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. 

On import, the JEE version is currently not consistent between binary and non-binary projects that have no deployment descriptor.  For non-binary projects the version is EE 6 if the selected runtime supports it and EE 5 if it does not.  The JavaEEQuickPeek class determines the versions for binary archives and just defaults them to EE 5 when they do not contain a deployment descriptor.     

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

No workaround exists  

    * How has the fix been tested? Is there a test case attached to the
bugzilla record? Has a JUnit Test been added? 

Existing JUnits have been run.

    * Give a brief technical overview. Who has reviewed this fix? 

The JavaEEQuickPeek code will be updated to be consistent with the import operation code.  The returned JEE version will be based on the runtime's highest supported version.

Chuck has reviewed this fix.

    * What is the risk associated with this fix? 

minimal - since no facet or deployment descriptor exist for these binary archives the version (whether EE 5 or EE 6) is not going to break anything.  This API would be used primarily for display purposes.
Comment 3 David Williams CLA 2010-09-09 10:01:31 EDT
My first thought was this was a relatively minor usability issue, but IMing with Chuck, he pointed out we've had a lot of complaints about usability of "dependency UI" and while good progress has been made on other fronts, this is a remaining issue that will be important to complete that overall usability story. 
And seems safe enough. (And, we'll have to rebuild anyway, to pick up versioning fixes).
Comment 4 Jason Sholl CLA 2010-09-09 12:48:13 EDT
code checked into both 32M and HEAD streams