| Summary: | SetConfig doesn't accept 1.4 JREs | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Alan Haggarty <haggarty> | ||||||
| Component: | TPTP | Assignee: | Mike Reid <mikereid> | ||||||
| Status: | CLOSED FIXED | QA Contact: | Kathy Chan <kathy> | ||||||
| Severity: | major | ||||||||
| Priority: | P2 | CC: | jcayne, jgwest, mikereid, paulslau | ||||||
| Version: | unspecified | Flags: | kathy:
pmc_approved?
(oec) kathy: pmc_approved? (ernest) kathy: pmc_approved? (kathy) paulslau: pmc_approved+ jgwest: pmc_approved+ jcayne: review+ |
||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Alan Haggarty
Mike, Please take a look as this looks like a regression. This is introduced by the update to Java 5 (bug 311768). In order to determine the version of the target VM we run: org.eclipse.tptp.platform.agentcontroller.config.GetJavaVersion which just prints the value of the "java.version" system property. However since it is now compiled with Java 5, the Java 1.4 VM cannot load it and so SetConfig thinks its invalid. Investigating further to determine best approach to fix. Created attachment 170195 [details]
Patch
Attached patch with the following changes:
- Move GetJavaVersion.java into its own source folder: src-config-14
- Updated build.properties to include classes-config-14 in config.jar
The other part will be to check in a pre-compiled .class of GetJavaVersion, compiled for Java 1.4. The build will then package this version into config.jar and things should then work again as they did before.
Joel, can you please review the patch? Patch looks good. Please add the new src folder to the source build and update the Copyright. Created attachment 170258 [details]
Revised patch
Attached new patch with the requested change.
Requesting for PMC approval: 1. Explain why you believe this is a stop-ship defect. How does the defect manifest itself, and how will users of TPTP / consuming products be affected if the defect is not fixed? User's cannot configure the Agent Controller to use a v1.4 JVM. 2. Is there a work-around? If so, why do you believe the work-around is insufficient? The only workaround would be to manually edit serviceconfig.xml after having configuring the AC with Java 1.5+. 3. Is this a regression or API breakage? Explain. Regression introduced in the update to Java 1.5 (bug 311768) 4. Does this require new API? No. 5. Who performed the code review? Joel Cayne. 6. Is there a test case attached to the bugzilla record? No. 7. What is the nature of the fix? What is the scope of the fix? What is the risk associated with this fix? Build change, target one .class to Java 1.4. All executions of SetConfig would be affected; however there is no code change. I would say this is low risk. 8. Is this fix related to any standards that TPTP adheres to? If so, who has validated that the fix continues to adhere to the standard? N/A. Requesting PMC approval for TPTP 4.7. Patch checked into HEAD. Retested with 0528 and 0601 builds, fixed. |