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 21876 Details for
Bug 96633
getJavaElement returns null for Object[] array binding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch96633_org.eclipse.jdt.core.txt (text/plain), 1.62 KB, created by
Jerome Lanneluc
on 2005-05-27 09:50:45 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2005-05-27 09:50:45 EDT
Size:
1.62 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.100 >diff -u -r1.100 TypeBinding.java >--- dom/org/eclipse/jdt/core/dom/TypeBinding.java 12 May 2005 02:38:55 -0000 1.100 >+++ dom/org/eclipse/jdt/core/dom/TypeBinding.java 27 May 2005 13:49:19 -0000 >@@ -374,22 +374,25 @@ > } > > private JavaElement getUnresolvedJavaElement() { >- if (this.binding == null) >+ org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding = this.binding; >+ if (typeBinding == null) > return null; >- switch (this.binding.kind()) { >+ switch (typeBinding.kind()) { > case Binding.ARRAY_TYPE : >+ typeBinding = ((ArrayBinding) typeBinding).leafComponentType(); >+ break; > case Binding.BASE_TYPE : > case Binding.WILDCARD_TYPE : > return null; > default : >- if (this.binding.isCapture()) >+ if (typeBinding.isCapture()) > return null; > } > ReferenceBinding referenceBinding; >- if (this.binding.isParameterizedType() || this.binding.isRawType()) >- referenceBinding = (ReferenceBinding) this.binding.erasure(); >+ if (typeBinding.isParameterizedType() || typeBinding.isRawType()) >+ referenceBinding = (ReferenceBinding) typeBinding.erasure(); > else >- referenceBinding = (ReferenceBinding) this.binding; >+ referenceBinding = (ReferenceBinding) typeBinding; > char[] fileName = referenceBinding.getFileName(); > if (Util.isClassFileName(fileName)) { > ClassFile classFile = (ClassFile) getClassFile(fileName);
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 96633
: 21876 |
21877