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 16020 Details for
Bug 78930
ITypeBinding#getJavaElement() throws NPE for type variable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_78930.txt (text/plain), 1.93 KB, created by
Olivier Thomann
on 2004-11-19 15:09:52 EST
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2004-11-19 15:09:52 EST
Size:
1.93 KB
patch
obsolete
>Index: TypeBinding.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java,v >retrieving revision 1.64 >diff -u -r1.64 TypeBinding.java >--- TypeBinding.java 19 Nov 2004 14:10:39 -0000 1.64 >+++ TypeBinding.java 19 Nov 2004 20:08:34 -0000 >@@ -327,13 +327,17 @@ > if (this.binding == null || this.binding.isArrayType() || this.binding.isBaseType()) return null; > ReferenceBinding referenceBinding = (ReferenceBinding) this.binding; > if (referenceBinding.isBinaryBinding()) { >- ClassFile classFile = (ClassFile) getClassFile(referenceBinding.getFileName()); >+ final char[] fileName = referenceBinding.getFileName(); >+ if (fileName == null) return null; >+ ClassFile classFile = (ClassFile) getClassFile(fileName); > if (classFile == null) return null; > return classFile.getType(); > } > if (referenceBinding.isLocalType() || referenceBinding.isAnonymousType()) { > // local or anonymous type >- ICompilationUnit cu = getCompilationUnit(referenceBinding.getFileName()); >+ final char[] fileName = referenceBinding.getFileName(); >+ if (fileName == null) return null; >+ ICompilationUnit cu = getCompilationUnit(fileName); > if (cu == null) return null; > if (!(this.resolver instanceof DefaultBindingResolver)) return null; > DefaultBindingResolver bindingResolver = (DefaultBindingResolver) this.resolver; >@@ -350,7 +354,9 @@ > ITypeBinding declaringTypeBinding = getDeclaringClass(); > if (declaringTypeBinding == null) { > // top level type >- ICompilationUnit cu = getCompilationUnit(referenceBinding.getFileName()); >+ final char[] fileName = referenceBinding.getFileName(); >+ if (fileName == null) return null; >+ ICompilationUnit cu = getCompilationUnit(fileName); > if (cu == null) return null; > return cu.getType(new String(referenceBinding.sourceName())); > } else {
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 78930
:
16002
| 16020 |
16119