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 153625 Details for
Bug 296629
[quick fix] Cast quick fix not offered for method-local classes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_296629.txt (text/plain), 1.45 KB, created by
Olivier Thomann
on 2009-12-02 12:51:27 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2009-12-02 12:51:27 EST
Size:
1.45 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java,v >retrieving revision 1.106 >diff -u -r1.106 TypeBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java 2 Oct 2009 20:04:28 -0000 1.106 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java 2 Dec 2009 17:54:02 -0000 >@@ -854,18 +854,22 @@ > case Binding.INTERSECTION_TYPE: > case Binding.GENERIC_TYPE: > return false; >- case Binding.PARAMETERIZED_TYPE: >+ case Binding.PARAMETERIZED_TYPE: > if (current.isBoundParameterizedType()) > return false; > break; > case Binding.RAW_TYPE: > return true; > } >- if (current.isStatic()) >+ if (current.isStatic()) { > return true; >+ } > if (current.isLocalType()) { >- NestedTypeBinding nestedType = (NestedTypeBinding) current.erasure(); >- if (nestedType.scope.methodScope().isStatic) return true; >+ LocalTypeBinding localTypeBinding = (LocalTypeBinding) current.erasure(); >+ MethodBinding enclosingMethod = localTypeBinding.enclosingMethod; >+ if (enclosingMethod != null && enclosingMethod.isStatic()) { >+ return true; >+ } > } > } while ((current = current.enclosingType()) != null); > return true;
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 296629
:
153625
|
153636