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 12831 Details for
Bug 68557
[1.5] ArrayIndexOutOfBoundsException in SourceTypeConverter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
This patch supposed to fix problem with multiple parametrized parameter types
68557-2.diff (text/plain), 1.92 KB, created by
Igor Fedorenko
on 2004-06-25 10:42:52 EDT
(
hide
)
Description:
This patch supposed to fix problem with multiple parametrized parameter types
Filename:
MIME Type:
Creator:
Igor Fedorenko
Created:
2004-06-25 10:42:52 EDT
Size:
1.92 KB
patch
obsolete
>Index: model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java,v >retrieving revision 1.1.2.7 >diff -u -r1.1.2.7 SourceTypeConverter.java >--- model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java 25 Jun 2004 11:57:11 -0000 1.1.2.7 >+++ model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java 25 Jun 2004 14:34:37 -0000 >@@ -393,6 +393,7 @@ > int nameFragmentStart = this.namePos, nameFragmentEnd = -1; > ArrayList fragments = null; > typeLoop: while (this.namePos < length) { >+ if (nameFragmentStart < 0) nameFragmentStart = this.namePos; > char currentChar = typeName[this.namePos]; > switch (currentChar) { > case '[' : >@@ -471,16 +472,18 @@ > } > } > // parameterized qualified type >- identCount = 0; >+ identCount = 0; int argumentCount = 0; > for (int i = 0; i < fragmentLength; i ++) { > Object element = fragments.get(i); > if (element instanceof char[][]) { > identCount += ((char[][])element).length; >+ } else { >+ argumentCount ++; > } > } > char[][] tokens = new char[identCount][]; >- TypeReference[][] arguments = new TypeReference[identCount][]; >- int index = 0; >+ TypeReference[][] arguments = new TypeReference[argumentCount][]; >+ int index = 0, argumentIndex = 0; > for (int i = 0; i < fragmentLength; i ++) { > Object element = fragments.get(i); > if (element instanceof char[][]) { >@@ -489,7 +492,7 @@ > System.arraycopy(fragmentTokens, 0, tokens, index, fragmentTokenLength); > index += fragmentTokenLength; > } else { >- arguments[index] = (TypeReference[]) element; >+ arguments[argumentIndex++] = (TypeReference[]) element; > } > } > long[] positions = new long[identCount];
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 68557
:
12819
| 12831