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 142822 Details for
Bug 276294
Error does not go away after it is resolved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
draft patch
bug276294-patch1.txt (text/plain), 2.63 KB, created by
Stephan Herrmann
on 2009-07-28 16:38:56 EDT
(
hide
)
Description:
draft patch
Filename:
MIME Type:
Creator:
Stephan Herrmann
Created:
2009-07-28 16:38:56 EDT
Size:
2.63 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties,v >retrieving revision 1.246 >diff -u -r1.246 messages.properties >--- compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties 10 Dec 2008 17:41:52 -0000 1.246 >+++ compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties 28 Jul 2009 20:35:32 -0000 >@@ -71,6 +71,7 @@ > 80 = The final field {0}.{1} cannot be assigned > 81 = The blank final field {0} may not have been initialized > 82 = The final field {0} may already have been assigned >+83 = {0} cannot be resolved to a variable > > 90 = The local variable {0} is hiding another local variable defined in an enclosing type scope > 91 = The local variable {0} is hiding a field from type {1} >Index: compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java,v >retrieving revision 1.391 >diff -u -r1.391 ProblemReporter.java >--- compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java 22 Jul 2009 20:03:28 -0000 1.391 >+++ compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java 28 Jul 2009 20:35:30 -0000 >@@ -6811,8 +6811,13 @@ > SingleNameReference ref = (SingleNameReference) nameRef; > if (isRecoveredName(ref.token)) return; > } >+ int problemId = IProblem.UndefinedName; >+ if ( (nameRef.bits & Binding.VARIABLE) != 0 >+ && (nameRef.bits & Binding.TYPE) == 0) { >+ problemId = IProblem.UnresolvedVariable; >+ } > this.handle( >- IProblem.UndefinedName, >+ problemId, > arguments, > arguments, > nameRef.sourceStart, >Index: compiler/org/eclipse/jdt/core/compiler/IProblem.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java,v >retrieving revision 1.212 >diff -u -r1.212 IProblem.java >--- compiler/org/eclipse/jdt/core/compiler/IProblem.java 24 Nov 2008 16:10:49 -0000 1.212 >+++ compiler/org/eclipse/jdt/core/compiler/IProblem.java 28 Jul 2009 20:35:18 -0000 >@@ -357,6 +357,8 @@ > int UninitializedBlankFinalField = FieldRelated + 81; > int DuplicateBlankFinalFieldInitialization = FieldRelated + 82; > >+ int UnresolvedVariable = FieldRelated + 83; >+ > // variable hiding > /** @since 3.0 */ > int LocalVariableHidingLocalVariable = Internal + 90;
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 276294
:
142822
|
143041