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 228391 Details for
Bug 389787
Expression#resolveTypeBinding returns wrong type for SimpleName inside QualifiedName
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch for JavaDoc
clipboard.txt (text/plain), 1.76 KB, created by
Jesper Moller
on 2013-03-13 20:09:40 EDT
(
hide
)
Description:
Patch for JavaDoc
Filename:
MIME Type:
Creator:
Jesper Moller
Created:
2013-03-13 20:09:40 EDT
Size:
1.76 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >diff --git dom/org/eclipse/jdt/core/dom/Expression.java dom/org/eclipse/jdt/core/dom/Expression.java >index 2003d9a..3a24ea7 100644 >--- dom/org/eclipse/jdt/core/dom/Expression.java >+++ dom/org/eclipse/jdt/core/dom/Expression.java >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2011 IBM Corporation and others. >+ * Copyright (c) 2000, 2013 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -7,6 +7,7 @@ > * > * Contributors: > * IBM Corporation - initial API and implementation >+ * Jesper Steen Moller - minor JavaDoc for bug 389787 > *******************************************************************************/ > > package org.eclipse.jdt.core.dom; >@@ -100,7 +101,17 @@ > * Note that bindings are generally unavailable unless requested when the > * AST is being built. > * </p> >- * >+ * <p> >+ * Note that the binding is resolved based on the context of the expression. >+ * For example, if the expression <code>obj.field1</code> is a field >+ * reference to <code>field1</code> inside the class <code>A</code>, the >+ * type binding returned for <code>obj</code> would be a binding for >+ * <code>A</code>, even if <code>obj</code> was declared as a subclass of >+ * <code>A</code>. >+ * <br> >+ * In this case, <code>fieldAccess.getExpression().resolveTypeBinding() >+ * == fieldAccess.resolveFieldBinding().getDeclaringClass()</code> >+ * </p> > * @return the binding for the type of this expression, or > * <code>null</code> if the type cannot be resolved > */
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 389787
: 228391 |
236601