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 192313 Details for
Bug 302850
13 failures in JavaModel tests for the N20100214-2000 Mac OS X - Cocoa test machine
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
more test harness
Bug_302850_harness.patch (text/plain), 2.70 KB, created by
Stephan Herrmann
on 2011-03-31 15:16:37 EDT
(
hide
)
Description:
more test harness
Filename:
MIME Type:
Creator:
Stephan Herrmann
Created:
2011-03-31 15:16:37 EDT
Size:
2.70 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/JavaModelManager.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelManager.java,v >retrieving revision 1.465 >diff -u -r1.465 JavaModelManager.java >--- model/org/eclipse/jdt/internal/core/JavaModelManager.java 14 Feb 2011 04:50:02 -0000 1.465 >+++ model/org/eclipse/jdt/internal/core/JavaModelManager.java 31 Mar 2011 19:09:44 -0000 >@@ -2070,10 +2070,14 @@ > > // return cached options if already computed > Hashtable cachedOptions; // use a local variable to avoid race condition (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=256329 ) >- if ((cachedOptions = this.optionsCache) != null) return new Hashtable(cachedOptions); >- >+ if ((cachedOptions = this.optionsCache) != null) { >+ if (DEBUG_302850) checkTaskTags("Retrieving options from optionsCache", this.optionsCache); //$NON-NLS-1$ >+ return new Hashtable(cachedOptions); >+ } >+ if (DEBUG_302850) System.out.println("optionsCache was null"); //$NON-NLS-1$ > if (!Platform.isRunning()) { > this.optionsCache = getDefaultOptionsNoInitialization(); >+ if (DEBUG_302850) checkTaskTags("Platform is not running", this.optionsCache); //$NON-NLS-1$ > return new Hashtable(this.optionsCache); > } > // init >@@ -2089,6 +2093,7 @@ > options.put(propertyName, propertyValue); > } > } >+ if (DEBUG_302850) checkTaskTags("Options initialized from preferences", options); //$NON-NLS-1$ > > // get encoding through resource plugin > options.put(JavaCore.CORE_ENCODING, JavaCore.getEncoding()); >@@ -2107,13 +2112,30 @@ > } > > Util.fixTaskTags(options); >+ if (DEBUG_302850) checkTaskTags("Retrieved options from preferences", options); //$NON-NLS-1$ > // store built map in cache > this.optionsCache = new Hashtable(options); >+ if (DEBUG_302850) checkTaskTags("Stored optionsCache", this.optionsCache); //$NON-NLS-1$ > > // return built map > return options; > } > >+ // debugging bug 302850: >+ private void checkTaskTags(String msg, Hashtable someOptions) { >+ System.out.println(msg); >+ Object taskTags = someOptions.get(JavaCore.COMPILER_TASK_TAGS); >+ System.out.println(" + Task tags: " + taskTags); //$NON-NLS-1$ >+ if (taskTags == null) { >+ System.out.println(" - option names: "+this.optionNames); //$NON-NLS-1$ >+ System.out.println(" - Call stack:"); //$NON-NLS-1$ >+ StackTraceElement[] elements = new Exception().getStackTrace(); >+ for (int i=0,n=elements.length; i<n; i++) { >+ System.out.println(" + "+elements[i]); //$NON-NLS-1$ >+ } >+ } >+ } >+ > /** > * Migrates an old option value to its new corresponding option name(s) > * when necessary.
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 302850
:
164028
|
181736
|
192313
|
192427
|
208432
|
208613
|
209063