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 195797 Details for
Bug 346010
[model] strange initialization dependency in OptionTests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Tweaks exposing the failure
Bug_346010_tweaks.patch (text/plain), 2.88 KB, created by
Stephan Herrmann
on 2011-05-16 19:08:00 EDT
(
hide
)
Description:
Tweaks exposing the failure
Filename:
MIME Type:
Creator:
Stephan Herrmann
Created:
2011-05-16 19:08:00 EDT
Size:
2.88 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.467 >diff -u -r1.467 JavaModelManager.java >--- model/org/eclipse/jdt/internal/core/JavaModelManager.java 10 May 2011 19:29:43 -0000 1.467 >+++ model/org/eclipse/jdt/internal/core/JavaModelManager.java 16 May 2011 22:50:00 -0000 >@@ -5054,9 +5054,9 @@ > } > return result; > } >- >+ static int count = 0; > public synchronized void variablePut(String variableName, IPath variablePath){ >- >+ System.out.println("variablePut ("+variableName+","+variablePath+") #"+(++count)); > // set/unset the initialization in progress > HashSet initializations = variableInitializationInProgress(); > if (variablePath == VARIABLE_INITIALIZATION_IN_PROGRESS) { >@@ -5076,7 +5076,10 @@ > this.variablesWithInitializer.remove(variableName); > this.deprecatedVariables.remove(variableName); > } else { >- this.variables.put(variableName, variablePath); >+ if (count != 1) >+ this.variables.put(variableName, variablePath); >+ else >+ System.out.println("DISCARD this.variables.put("+variableName+", "+variablePath+")"); > } > // discard obsoleted information about previous session > this.previousSessionVariables.remove(variableName); >Index: model/org/eclipse/jdt/internal/core/SetVariablesOperation.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SetVariablesOperation.java,v >retrieving revision 1.11 >diff -u -r1.11 SetVariablesOperation.java >--- model/org/eclipse/jdt/internal/core/SetVariablesOperation.java 11 May 2010 18:47:09 -0000 1.11 >+++ model/org/eclipse/jdt/internal/core/SetVariablesOperation.java 16 May 2011 22:50:00 -0000 >@@ -38,7 +38,7 @@ > this.variablePaths = variablePaths; > this.updatePreferences = updatePreferences; > } >- >+ static int count = 0; > protected void executeOperation() throws JavaModelException { > checkCanceled(); > try { >@@ -122,8 +122,15 @@ > // update variables > for (int i = 0; i < varLength; i++){ > manager.variablePut(this.variableNames[i], this.variablePaths[i]); >- if (this.updatePreferences) >- manager.variablePreferencesPut(this.variableNames[i], this.variablePaths[i]); >+ if (count != 0) { >+ if (this.updatePreferences) { >+ System.out.println("manager.variablePreferencesPut("+this.variableNames[i]+","+this.variablePaths[i]+")"); >+ manager.variablePreferencesPut(this.variableNames[i], this.variablePaths[i]); >+ } >+ } else { >+ System.out.println("DISCARD manager.variablePreferencesPut("+this.variableNames[i]+","+this.variablePaths[i]+")"); >+ } >+ count++; > } > > // update affected project classpaths
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 346010
:
195797
|
201475
|
201476
|
202014