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 189706 Details for
Bug 337964
[DOM] code that would definitely cause NPE if executed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_337964.txt (text/plain), 1.97 KB, created by
Olivier Thomann
on 2011-02-24 11:03:50 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2011-02-24 11:03:50 EST
Size:
1.97 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java,v >retrieving revision 1.171 >diff -u -r1.171 DefaultBindingResolver.java >--- dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java 6 Jan 2011 19:58:34 -0000 1.171 >+++ dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java 24 Feb 2011 16:03:11 -0000 >@@ -1523,11 +1523,8 @@ > return null; > } > ArrayType arrayType = (ArrayType) type; >- if (typeBinding.isArrayType()) { >- ArrayBinding arrayBinding = (ArrayBinding) typeBinding; >- return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); >- } >- return getTypeBinding(this.scope.createArrayType(binding, arrayType.getDimensions())); >+ ArrayBinding arrayBinding = (ArrayBinding) typeBinding; >+ return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); > } > if (typeBinding.isArrayType()) { > typeBinding = ((ArrayBinding) typeBinding).leafComponentType; >@@ -1567,11 +1564,8 @@ > if (this.scope == null) { > return null; > } >- if (binding.isArrayType()) { >- ArrayBinding arrayBinding = (ArrayBinding) binding; >- return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); >- } >- return getTypeBinding(this.scope.createArrayType(binding, arrayType.getDimensions())); >+ ArrayBinding arrayBinding = (ArrayBinding) binding; >+ return getTypeBinding(this.scope.createArrayType(arrayBinding.leafComponentType, arrayType.getDimensions())); > } else if (binding.isArrayType()) { > ArrayBinding arrayBinding = (ArrayBinding) binding; > return getTypeBinding(arrayBinding.leafComponentType);
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 337964
: 189706