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 31905 Details for
Bug 120264
[api] have array binding X[][][], want X[][] and X[]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_120264.txt (text/plain), 2.09 KB, created by
Olivier Thomann
on 2005-12-17 19:36:42 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-12-17 19:36:42 EST
Size:
2.09 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/TypeBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java,v >retrieving revision 1.109 >diff -u -r1.109 TypeBinding.java >--- dom/org/eclipse/jdt/core/dom/TypeBinding.java 20 Oct 2005 13:26:46 -0000 1.109 >+++ dom/org/eclipse/jdt/core/dom/TypeBinding.java 18 Dec 2005 00:37:07 -0000 >@@ -140,6 +140,17 @@ > } > > /* >+ * @see ITypeBinding#getComponentType() >+ */ >+ public ITypeBinding getComponentType() { >+ if (!this.isArray()) { >+ return null; >+ } >+ ArrayBinding arrayBinding = (ArrayBinding) binding; >+ return resolver.getTypeBinding(arrayBinding.elementsType()); >+ } >+ >+ /* > * @see ITypeBinding#getDeclaredFields() > */ > public IVariableBinding[] getDeclaredFields() { >Index: dom/org/eclipse/jdt/core/dom/ITypeBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ITypeBinding.java,v >retrieving revision 1.51 >diff -u -r1.51 ITypeBinding.java >--- dom/org/eclipse/jdt/core/dom/ITypeBinding.java 14 Jun 2005 15:41:19 -0000 1.51 >+++ dom/org/eclipse/jdt/core/dom/ITypeBinding.java 18 Dec 2005 00:37:06 -0000 >@@ -75,6 +75,18 @@ > public ITypeBinding getBound(); > > /** >+ * Returns the component type of this array type. The component type >+ * may be another array type. >+ * Returns the binding representing the component type of this array type, >+ * or <code>null</code> if this is not an array type binding. The component >+ * type of an array may be another array type. >+ * >+ * @return the component type binding, or <code>null</code> if this is >+ * not an array type >+ */ >+ public ITypeBinding getComponentType(); >+ >+ /** > * Returns a list of bindings representing all the fields declared > * as members of this class, interface, or enum type. These include public, > * protected, default (package-private) access, and private fields declared
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 120264
: 31905 |
31906