Community
Participate
Working Groups
The default folder mapping for utility jars was recently changed from / to /lib when mapping into EARs with version 5.0 or greater (see bug 318515). Some of the JUnits were broken because of this. There was also a problem with the implementation which causes class cast exceptions during refactoring. The changes to the following files fix these two problems: AddComponentToEnterpriseApplicationDataModelProvider EarUtilities JUnit classes: EarLibDirContainerTests DependencyCreationUtil DependencyVerificationUtil The above change to the default behavior also exposed another bug that has always been there which causes failures when removing modules; this is fixed with: RemoveReferenceComponentOperation The rewrite of the dependency graph (see bug 317120) has caused refactoring to fail to update META-INF/MANIFEST.MF dependencies. This is because the new graph does not track these dependencies. The fix is addressed with the change in: ProjectRefactoringListener Note that there are still some failures in these JUnits which are timing related (putting Thread.sleep in key places causes them to pass). I will continue to work on fixing this and will address that in another bug. But with the changes above (and the Thread.sleep() calls not included here) the JUnits are now passing 100%.
Created attachment 173887 [details] patch for 3.2.1 This has been tested with the JUnits and with the UI. The risk for regression is minimal.
approved
* 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. There are a few minor regressions resulting from earlier fixes. * Is there a work-around? If so, why do you believe the work-around is insufficient? No * How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? Existing JUnits caught these problems, and testing with the UI. * Give a brief technical overview. Who has reviewed this fix? See original comment * What is the risk associated with this fix? None
I think having "class cast" problems in summary would be better than emphasizing unit test fixes ... but, I'm fine with the fix itself.
code checked into HEAD for WTP 3.2.1