Community
Participate
Working Groups
Build Identifier: 3.4.2_v20090122 The entries for utility Jars in this page are disabled making impossible to disable the utility or activate the "In Lib Dir" option. Reproducible: Always Steps to Reproduce: 1. Create an EAR project with all defaults 2. Open the Import J2EE Utility Jar wizard 3. Select the option to "Copy utility jars into an existing EAR from an external location" 4. Locate the Utility jar and finish the wizard 5. Select the EAR you created and bring up the properties page 6. Go to Java EE Module dependencies page and see the disabled item
The fix for Bug 349741 uncovered some additional issues that were not caught during testing but during verification instead.
Created attachment 203292 [details] Fix patch I noticed that the method getWorkspaceRelativePath() form VirtualArchiveComponent class is not consistent on its results, it returns a path including the EAR when the utility jars were just copied (not in component file) and returns a path excluding the EAR when utility jars have been imported (present in component file). The method is deprecated in newer streams so the fix to this is basically add some shielding code to the places where the method is used.
approved
The Java 6 method Arrays.copyOfRange() caused errors.
Resolving since this was committed and released on Sept 23 by Carl. Thanks Carl for the Arrays.copyOfRange() correction.