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 79152 Details for
Bug 204534
[1.5][compiler] Annoying consequence of method verification problem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
patch.txt (text/plain), 1.49 KB, created by
Kent Johnson
on 2007-09-25 13:41:41 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Kent Johnson
Created:
2007-09-25 13:41:41 EDT
Size:
1.49 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java,v >retrieving revision 1.313 >diff -u -r1.313 Scope.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 24 Sep 2007 22:49:54 -0000 1.313 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 25 Sep 2007 17:39:26 -0000 >@@ -2254,9 +2254,13 @@ > case METHOD_SCOPE : > MethodScope methodScope = (MethodScope) scope; > AbstractMethodDeclaration methodDecl = methodScope.referenceMethod(); >- if (methodDecl != null && methodDecl.binding != null) { >- TypeVariableBinding typeVariable = methodDecl.binding.getTypeVariable(name); >- if (typeVariable != null) return typeVariable; >+ if (methodDecl != null) { >+ // use the methodDecl's typeParameters to handle problem cases when the method binding doesn't exist >+ TypeParameter[] params = methodDecl.typeParameters(); >+ for (int i = params == null ? 0 : params.length; --i >= 0;) >+ if (CharOperation.equals(params[i].name, name)) >+ if (params[i].binding != null && params[i].binding.isValidBinding()) >+ return params[i].binding; > } > insideStaticContext |= methodScope.isStatic; > insideTypeAnnotation = methodScope.insideTypeAnnotation;
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 204534
:
79152
|
79233