Summary: | [1.5] ArrayIndexOutOfBoundsException in SourceTypeConverter | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Igor Fedorenko <igor> | ||||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||||
Status: | RESOLVED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | ||||||||
Version: | 3.0 | ||||||||
Target Milestone: | 3.1 M1 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows 2000 | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Igor Fedorenko
2004-06-24 19:33:27 EDT
Created attachment 12819 [details]
few obvious fixes to SourceTypeConverter
I've fixed couple problems in SourceTypeConverter. Unfortunately I do not know
the code enough to see if the fix breaks anything or there are other problems.
I'll update the patch should I find anything else.
I was working on it. These changes are indeed necessary. Fixed in latest, also needed a couple more tweaks but along same line. Thank you for the fix Philippe. There are however couple of other problems with this code that become apparent with multiple parametrized parameter types (like in Map<List<Object>,List<Object>>. Created attachment 12831 [details]
This patch supposed to fix problem with multiple parametrized parameter types
This patch fixes the editor problem however i am not 100% sure about AST it
creates. TypeReference#toString returns "List<Object>.List<Object>" instead of
"List<Object>,List<Object>" which does not look right.
I did notice the problem with multiple arguments, and had released a fix for it as well (simpler than your patch). There was some confusion in offset of #decodeArgumentTypes, when returning it is supposed to be on trailing '>', and was off by one causing grief. Can you reproduce the issue with the released version ? Closing That worked. Thank you again. I released another version which supports wildcards. |