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 191080 Details for
Bug 339337
isLocal() in IType returns true for anonymous types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Updated patch
bug_339337.txt (text/plain), 2.48 KB, created by
Jay Arthanareeswaran
on 2011-03-14 01:41:19 EDT
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
Jay Arthanareeswaran
Created:
2011-03-14 01:41:19 EDT
Size:
2.48 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >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.74 >diff -u -r1.74 ITypeBinding.java >--- dom/org/eclipse/jdt/core/dom/ITypeBinding.java 7 Mar 2009 00:59:01 -0000 1.74 >+++ dom/org/eclipse/jdt/core/dom/ITypeBinding.java 14 Mar 2011 05:38:26 -0000 >@@ -751,11 +751,14 @@ > * <p> > * A local class is any nested class or enum type not declared as a member > * of another class or interface. A local class is a subspecies of nested >- * type, and mutually exclusive with member types. Note that anonymous >- * classes are a subspecies of local classes. >+ * type, and mutually exclusive with member types. For anonymous >+ * classes, which are considered a subspecies of local classes, this method >+ * returns true. > * </p> > * <p> >- * Also note that interfaces and annotation types cannot be local. >+ * Note: This deviates from JLS3 14.3, which states that anonymous types are >+ * not local types since they do not have a name. Also note that interfaces >+ * and annotation types cannot be local. > * </p> > * > * @return <code>true</code> if this type binding is for a local class or >Index: model/org/eclipse/jdt/core/IType.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IType.java,v >retrieving revision 1.71 >diff -u -r1.71 IType.java >--- model/org/eclipse/jdt/core/IType.java 17 Dec 2010 14:10:57 -0000 1.71 >+++ model/org/eclipse/jdt/core/IType.java 14 Mar 2011 05:38:26 -0000 >@@ -906,11 +906,17 @@ > boolean isAnnotation() throws JavaModelException; > > /** >- * Returns whether this type represents a local type. >+ * Returns whether this type represents a local type. For an anonymous type, >+ * this method returns true. >+ * <p> >+ * Note: This deviates from JLS3 14.3, which states that anonymous types are >+ * not local types since they do not have a name. >+ * </p> > * > * @exception JavaModelException if this element does not exist or if an > * exception occurs while accessing its corresponding resource. > * @return true if this type represents a local type, false otherwise >+ * @see org.eclipse.jdt.core.dom.ITypeBinding#isLocal() > * @since 2.0 > */ > boolean isLocal() throws JavaModelException;
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 339337
:
190889
| 191080