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 4278 Details for
Bug 35438
CastExpression resolution departs from JLS section 6.5.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch for BlockScope
patch.txt (text/plain), 1.67 KB, created by
Philipe Mulet
on 2003-03-21 07:58:45 EST
(
hide
)
Description:
patch for BlockScope
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2003-03-21 07:58:45 EST
Size:
1.67 KB
patch
obsolete
>Index: BlockScope.java >=================================================================== >RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/BlockScope.java,v >retrieving revision 1.57 >diff -u -r1.57 BlockScope.java >--- BlockScope.java 11 Mar 2003 15:03:54 -0000 1.57 >+++ BlockScope.java 21 Mar 2003 12:53:44 -0000 >@@ -442,7 +442,7 @@ > char[] nextName = compoundName[currentIndex++]; > invocationSite.setFieldIndex(currentIndex); > invocationSite.setActualReceiverType(typeBinding); >- if ((binding = findField(typeBinding, nextName, invocationSite)) != null) { >+ if ((mask & FIELD) != 0 && (binding = findField(typeBinding, nextName, invocationSite)) != null) { > if (!binding.isValidBinding()) > return new ProblemFieldBinding( > ((FieldBinding) binding).declaringClass, >@@ -450,11 +450,19 @@ > binding.problemId()); > break; // binding is now a field > } >- if ((binding = findMemberType(nextName, typeBinding)) == null) >- return new ProblemBinding( >- CharOperation.subarray(compoundName, 0, currentIndex), >- typeBinding, >- NotFound); >+ if ((binding = findMemberType(nextName, typeBinding)) == null) { >+ if ((mask & FIELD) != 0) { >+ return new ProblemBinding( >+ CharOperation.subarray(compoundName, 0, currentIndex), >+ typeBinding, >+ NotFound); >+ } else { >+ return new ProblemReferenceBinding( >+ CharOperation.subarray(compoundName, 0, currentIndex), >+ typeBinding, >+ NotFound); >+ } >+ } > if (!binding.isValidBinding()) > return new ProblemReferenceBinding( > CharOperation.subarray(compoundName, 0, currentIndex),
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 35438
: 4278