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 16075 Details for
Bug 79163
[compiler] Dependency on indirectly referenced types not correctly computed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Add report type reference when type cannot be seen.
v00.txt (text/plain), 2.09 KB, created by
Frederic Fusier
on 2004-11-23 11:11:00 EST
(
hide
)
Description:
Add report type reference when type cannot be seen.
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2004-11-23 11:11:00 EST
Size:
2.09 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java,v >retrieving revision 1.138 >diff -u -r1.138 Scope.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 22 Nov 2004 13:51:50 -0000 1.138 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 23 Nov 2004 14:19:32 -0000 >@@ -636,8 +636,10 @@ > if (receiverType.isArrayType()) { > TypeBinding leafType = receiverType.leafComponentType(); > if (leafType instanceof ReferenceBinding) { >- if (!((ReferenceBinding) leafType).canBeSeenBy(this)) >+ if (!((ReferenceBinding) leafType).canBeSeenBy(this)) { >+ compilationUnitScope().recordTypeReference(leafType); > return new ProblemFieldBinding((ReferenceBinding)leafType, fieldName, ReceiverTypeNotVisible); >+ } > } > if (CharOperation.equals(fieldName, LENGTH)) > return ArrayBinding.ArrayLength; >@@ -1088,8 +1090,10 @@ > > TypeBinding leafType = receiverType.leafComponentType(); > if (leafType instanceof ReferenceBinding) { >- if (!((ReferenceBinding) leafType).canBeSeenBy(this)) >+ if (!((ReferenceBinding) leafType).canBeSeenBy(this)) { >+ compilationUnitScope().recordTypeReference(leafType); > return new ProblemMethodBinding(selector, TypeConstants.NoParameters, (ReferenceBinding)leafType, ReceiverTypeNotVisible); >+ } > } > > ReferenceBinding object = getJavaLangObject(); >@@ -1980,8 +1984,10 @@ > return new ProblemMethodBinding(selector, argumentTypes, NotFound); > > ReferenceBinding currentType = (ReferenceBinding) receiverType; >- if (!currentType.canBeSeenBy(this)) >+ if (!currentType.canBeSeenBy(this)) { >+ compilationUnitScope().recordTypeReference(currentType); > return new ProblemMethodBinding(selector, argumentTypes, ReceiverTypeNotVisible); >+ } > > // retrieve an exact visible match (if possible) > MethodBinding methodBinding = findExactMethod(currentType, selector, argumentTypes, invocationSite);
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 79163
:
16075
|
16076
|
16077