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 23647 Details for
Bug 100631
Internal compiler error in 3.1RC2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to LookupEnvironment
patch.txt (text/plain), 1.82 KB, created by
Kent Johnson
on 2005-06-21 13:42:27 EDT
(
hide
)
Description:
Patch to LookupEnvironment
Filename:
MIME Type:
Creator:
Kent Johnson
Created:
2005-06-21 13:42:27 EDT
Size:
1.82 KB
patch
obsolete
>Index: LookupEnvironment.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java,v >retrieving revision 1.54 >diff -u -r1.54 LookupEnvironment.java >--- LookupEnvironment.java 7 Jun 2005 16:46:54 -0000 1.54 >+++ LookupEnvironment.java 21 Jun 2005 17:41:22 -0000 >@@ -470,11 +470,15 @@ > // resolve any array bindings which reference the unresolvedType > ReferenceBinding cachedType = packageBinding.getType0(binaryBinding.compoundName[binaryBinding.compoundName.length - 1]); > if (cachedType != null) { // update reference to unresolved binding after having read classfile (knows whether generic for raw conversion) >- // TODO (kent) suspect the check below is no longer required, since we should not be requesting a binary which is already in the cache >- if (cachedType.isBinaryBinding()) // sanity check before the cast... at this point the cache should ONLY contain unresolved types >- return (BinaryTypeBinding) cachedType; >- >- ((UnresolvedReferenceBinding) cachedType).setResolvedType(binaryBinding, this); >+ if (cachedType instanceof UnresolvedReferenceBinding) { >+ ((UnresolvedReferenceBinding) cachedType).setResolvedType(binaryBinding, this); >+ } else { >+ if (cachedType.isBinaryBinding()) // sanity check... at this point the cache should ONLY contain unresolved types >+ return (BinaryTypeBinding) cachedType; >+ // it is possible with a large number of source files (exceeding AbstractImageBuilder.MAX_AT_ONCE) that a member type can be in the cache as an UnresolvedType, >+ // but because its enclosingType is resolved while its created (call to BinaryTypeBinding constructor), its replaced with a source type >+ return null; >+ } > } > > packageBinding.addType(binaryBinding);
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 100631
: 23647