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 86415 Details for
Bug 214647
[dom] NPE in MethodBinding.getParameterAnnotations(..)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_214647.txt (text/plain), 1.85 KB, created by
Olivier Thomann
on 2008-01-08 13:20:25 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2008-01-08 13:20:25 EST
Size:
1.85 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/MethodBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodBinding.java,v >retrieving revision 1.88 >diff -u -r1.88 MethodBinding.java >--- dom/org/eclipse/jdt/core/dom/MethodBinding.java 20 Dec 2007 15:18:05 -0000 1.88 >+++ dom/org/eclipse/jdt/core/dom/MethodBinding.java 8 Jan 2008 18:19:05 -0000 >@@ -142,21 +142,25 @@ > } > org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding[][] bindingAnnotations = this.binding.getParameterAnnotations(); > // bindingAnnoatations is never null as the method has one or several parameters >+ if (bindingAnnotations == null) return AnnotationBinding.NoAnnotations; > int length = bindingAnnotations.length; >- this.parameterAnnotations = new AnnotationBinding[length][]; >+ >+ IAnnotationBinding[][] domAnnotations = new IAnnotationBinding[length][]; > for (int i = 0; i < length; i++) { > org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding[] paramBindingAnnotations = bindingAnnotations[i]; > int pLength = paramBindingAnnotations.length; >- this.parameterAnnotations[i] = new AnnotationBinding[pLength]; >+ domAnnotations[i] = new AnnotationBinding[pLength]; > for (int j=0; j<pLength; j++) { > IAnnotationBinding domAnnotation = this.resolver.getAnnotationInstance(paramBindingAnnotations[j]); > if (domAnnotation == null) { >- this.parameterAnnotations[i] = AnnotationBinding.NoAnnotations; >+ domAnnotations[i] = AnnotationBinding.NoAnnotations; > break; > } >- this.parameterAnnotations[i][j] = domAnnotation; >+ domAnnotations[i][j] = domAnnotation; > } > } >+ this.parameterAnnotations = domAnnotations; >+ > return this.parameterAnnotations[index]; > } >
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 214647
: 86415 |
86417