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 62737 Details for
Bug 180524
NPE in ITypeBinding#createArrayType(..) on anonymous type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_180524.txt (text/plain), 2.45 KB, created by
Olivier Thomann
on 2007-04-02 20:54:33 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-04-02 20:54:33 EDT
Size:
2.45 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/LocalTypeBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LocalTypeBinding.java,v >retrieving revision 1.42 >diff -u -r1.42 LocalTypeBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/LocalTypeBinding.java 24 Nov 2006 01:32:07 -0000 1.42 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/LocalTypeBinding.java 3 Apr 2007 00:54:35 -0000 >@@ -91,9 +91,9 @@ > return constantPoolName; > } > >-ArrayBinding createArrayType(int dimensionCount) { >+ArrayBinding createArrayType(int dimensionCount, LookupEnvironment lookupEnvironment) { > if (localArrayBindings == null) { >- localArrayBindings = new ArrayBinding[] {new ArrayBinding(this, dimensionCount, scope.environment())}; >+ localArrayBindings = new ArrayBinding[] {new ArrayBinding(this, dimensionCount, lookupEnvironment)}; > return localArrayBindings[0]; > } > >@@ -105,7 +105,7 @@ > > // no matching array > System.arraycopy(localArrayBindings, 0, localArrayBindings = new ArrayBinding[length + 1], 0, length); >- return localArrayBindings[length] = new ArrayBinding(this, dimensionCount, scope.environment()); >+ return localArrayBindings[length] = new ArrayBinding(this, dimensionCount, lookupEnvironment); > } > > /* >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java,v >retrieving revision 1.75 >diff -u -r1.75 LookupEnvironment.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java 22 Dec 2006 16:02:08 -0000 1.75 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java 3 Apr 2007 00:54:36 -0000 >@@ -538,7 +538,7 @@ > */ > public ArrayBinding createArrayType(TypeBinding leafComponentType, int dimensionCount) { > if (leafComponentType instanceof LocalTypeBinding) // cache local type arrays with the local type itself >- return ((LocalTypeBinding) leafComponentType).createArrayType(dimensionCount); >+ return ((LocalTypeBinding) leafComponentType).createArrayType(dimensionCount, this); > > // find the array binding cache for this dimension > int dimIndex = dimensionCount - 1;
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 180524
: 62737