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 23038 Details for
Bug 99901
[select] AIOOBE when selecting package reference in import statement
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Proposed fix
patchjdtcore001.txt (text/plain), 1.79 KB, created by
David Audel
on 2005-06-14 05:26:54 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
David Audel
Created:
2005-06-14 05:26:54 EDT
Size:
1.79 KB
patch
obsolete
>Index: codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java,v >retrieving revision 1.115 >diff -u -r1.115 SelectionEngine.java >--- codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java 6 Jun 2005 17:07:18 -0000 1.115 >+++ codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java 14 Jun 2005 08:59:18 -0000 >@@ -620,13 +620,15 @@ > char[] lastToken = tokens[tokenCount - 1]; > char[][] qualifierTokens = CharOperation.subarray(tokens, 0, tokenCount - 1); > >- Binding binding = this.unitScope.getTypeOrPackage(qualifierTokens); >- if(binding != null && binding instanceof ReferenceBinding) { >- ReferenceBinding ref = (ReferenceBinding) binding; >- selectMemberTypeFromImport(parsedUnit, lastToken, ref, importReference.isStatic()); >- if(importReference.isStatic()) { >- selectStaticFieldFromStaticImport(parsedUnit, lastToken, ref); >- selectStaticMethodFromStaticImport(parsedUnit, lastToken, ref); >+ if(qualifierTokens != null && qualifierTokens.length > 0) { >+ Binding binding = this.unitScope.getTypeOrPackage(qualifierTokens); >+ if(binding != null && binding instanceof ReferenceBinding) { >+ ReferenceBinding ref = (ReferenceBinding) binding; >+ selectMemberTypeFromImport(parsedUnit, lastToken, ref, importReference.isStatic()); >+ if(importReference.isStatic()) { >+ selectStaticFieldFromStaticImport(parsedUnit, lastToken, ref); >+ selectStaticMethodFromStaticImport(parsedUnit, lastToken, ref); >+ } > } > } > }
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 Raw
Actions:
View
Attachments on
bug 99901
: 23038