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 23714 Details for
Bug 100636
[model] Can't find overriden methods of protected nonstatic inner class.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Improved patch
patch100636_org.eclipse.jdt.core.txt (text/plain), 2.07 KB, created by
Jerome Lanneluc
on 2005-06-22 06:09:34 EDT
(
hide
)
Description:
Improved patch
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2005-06-22 06:09:34 EDT
Size:
2.07 KB
patch
obsolete
>Index: dom/org/eclipse/jdt/core/dom/TypeBinding.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java,v >retrieving revision 1.104 >diff -u -r1.104 TypeBinding.java >--- dom/org/eclipse/jdt/core/dom/TypeBinding.java 15 Jun 2005 16:29:45 -0000 1.104 >+++ dom/org/eclipse/jdt/core/dom/TypeBinding.java 22 Jun 2005 09:14:42 -0000 >@@ -48,6 +48,7 @@ > import org.eclipse.jdt.internal.compiler.lookup.TypeConstants; > import org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding; > import org.eclipse.jdt.internal.compiler.lookup.WildcardBinding; >+import org.eclipse.jdt.internal.compiler.util.SuffixConstants; > import org.eclipse.jdt.internal.compiler.util.Util; > import org.eclipse.jdt.internal.core.ClassFile; > import org.eclipse.jdt.internal.core.JavaElement; >@@ -397,8 +398,20 @@ > referenceBinding = (ReferenceBinding) typeBinding; > char[] fileName = referenceBinding.getFileName(); > if (Util.isClassFileName(fileName)) { >- ClassFile classFile = (ClassFile) getClassFile(fileName); >- if (classFile == null) return null; >+ int lastSlash = CharOperation.lastIndexOf('/', fileName); >+ if (lastSlash == -1) >+ lastSlash = CharOperation.lastIndexOf(File.separatorChar, fileName); >+ if (lastSlash == -1) >+ return null; >+ IPackageFragment pkg = getPackageFragment(fileName, lastSlash); >+ char[] constantPoolName = referenceBinding.constantPoolName(); >+ if (constantPoolName == null) { >+ ClassFile classFile = (ClassFile) getClassFile(fileName); >+ return classFile == null ? null : (JavaElement) classFile.getType(); >+ } >+ lastSlash = CharOperation.lastIndexOf('/', constantPoolName); >+ char[] classFileName = CharOperation.subarray(constantPoolName, lastSlash+1, constantPoolName.length); >+ ClassFile classFile = (ClassFile) pkg.getClassFile(new String(classFileName) + SuffixConstants.SUFFIX_STRING_class); > return (JavaElement) classFile.getType(); > } > if (referenceBinding.isLocalType() || referenceBinding.isAnonymousType()) {
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 100636
:
23650
|
23714
|
23723
|
26288
|
26289