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 39972 Details for
Bug 139569
Batch compiler should check if java home is null when trying to set the extDirs and endorsed dirs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_139569.txt (text/plain), 1.60 KB, created by
Olivier Thomann
on 2006-05-01 14:37:10 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-05-01 14:37:10 EDT
Size:
1.60 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: batch/org/eclipse/jdt/internal/compiler/batch/Main.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java,v >retrieving revision 1.253 >diff -u -r1.253 Main.java >--- batch/org/eclipse/jdt/internal/compiler/batch/Main.java 20 Apr 2006 03:03:22 -0000 1.253 >+++ batch/org/eclipse/jdt/internal/compiler/batch/Main.java 1 May 2006 18:35:39 -0000 >@@ -2507,7 +2507,9 @@ > extdirsClasspaths = new ArrayList(DEFAULT_SIZE_CLASSPATH); > String extdirsStr = System.getProperty("java.ext.dirs"); //$NON-NLS-1$ > if (extdirsStr == null) { >- extdirsClasspaths.add(javaHome.getAbsolutePath() + "/lib/ext"); //$NON-NLS-1$ >+ if (javaHome != null) { >+ extdirsClasspaths.add(javaHome.getAbsolutePath() + "/lib/ext"); //$NON-NLS-1$ >+ } > } else { > StringTokenizer tokenizer = new StringTokenizer(extdirsStr, File.pathSeparator); > while (tokenizer.hasMoreTokens()) >@@ -2555,7 +2557,9 @@ > endorsedDirClasspaths = new ArrayList(DEFAULT_SIZE_CLASSPATH); > String endorsedDirsStr = System.getProperty("java.endorsed.dirs"); //$NON-NLS-1$ > if (endorsedDirsStr == null) { >- endorsedDirClasspaths.add(javaHome.getAbsolutePath() + "/lib/endorsed"); //$NON-NLS-1$ >+ if (javaHome != null) { >+ endorsedDirClasspaths.add(javaHome.getAbsolutePath() + "/lib/endorsed"); //$NON-NLS-1$ >+ } > } else { > StringTokenizer tokenizer = new StringTokenizer(endorsedDirsStr, File.pathSeparator); > while (tokenizer.hasMoreTokens())
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 139569
: 39972