Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 62170 Details for
Bug 179630
Compiler parsing tests fail with IBM J2SE 1.4.2, 5.0, and 6.0 (early access)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fixes getJavaClassLibs for IBM JRE
Utils_for_ibmjava.txt (text/plain), 2.13 KB, created by
Corey Ashford
on 2007-03-27 21:22:43 EDT
(
hide
)
Description:
Fixes getJavaClassLibs for IBM JRE
Filename:
MIME Type:
Creator:
Corey Ashford
Created:
2007-03-27 21:22:43 EDT
Size:
2.13 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/util/Util.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/Util.java,v >retrieving revision 1.53 >diff -u -r1.53 Util.java >--- src/org/eclipse/jdt/core/tests/util/Util.java 20 Dec 2006 16:11:25 -0000 1.53 >+++ src/org/eclipse/jdt/core/tests/util/Util.java 28 Mar 2007 00:51:54 -0000 >@@ -649,25 +649,36 @@ > if ("J9".equals(vmName)) { > return new String[] { toNativePath(jreDir + "/lib/jclMax/classes.zip") }; > } >- File file = new File(jreDir + "/lib/rt.jar"); >+ File file = new File(jreDir + "/lib/vm.jar"); >+ if (file.exists()) { >+ file = new File(jreDir + "/lib/rt.jar"); >+ if (file.exists()) { >+ // The IBM J2SE 6.0 has put the Java classes in vm.jar, but still has rt.jar >+ return new String[] { >+ toNativePath(jreDir + "/lib/vm.jar"), >+ toNativePath(jreDir + "/lib/rt.jar")}; >+ } else { >+ // The IBM J2SE 5.0 has put the java.lang classes in vm.jar. >+ return new String[] { >+ toNativePath(jreDir + "/lib/vm.jar"), >+ toNativePath(jreDir + "/lib/core.jar"), >+ toNativePath(jreDir + "/lib/security.jar"), >+ toNativePath(jreDir + "/lib/graphics.jar"), >+ toNativePath(jreDir + "/lib/xml.jar") >+ }; >+ } >+ } >+ file = new File(jreDir + "/lib/rt.jar"); > if (file.exists()) { > return new String[] { > toNativePath(jreDir + "/lib/rt.jar") > }; > } >- file = new File(jreDir + "/lib/vm.jar"); >- if (file.exists()) { >- // The IBM J2SE 5.0 has put the java.lang classes in vm.jar. >- return new String[] { >- toNativePath(jreDir + "/lib/vm.jar"), >- toNativePath(jreDir + "/lib/core.jar"), >- toNativePath(jreDir + "/lib/security.jar"), >- toNativePath(jreDir + "/lib/graphics.jar") }; >- } > return new String[] { > toNativePath(jreDir + "/lib/core.jar"), > toNativePath(jreDir + "/lib/security.jar"), >- toNativePath(jreDir + "/lib/graphics.jar") >+ toNativePath(jreDir + "/lib/graphics.jar"), >+ toNativePath(jreDir + "/lib/xml.jar") > }; > } > public static String getJavaClassLibsAsString() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 179630
:
62170
|
62455