Community
Participate
Working Groups
I20080812-0800 Have this code in Java project 'J': //---- package snippet; import java.util.ArrayList; public class Snippet { public static void main(String[] args) { ArrayList<String> strings= null; System.out.println(strings); } } //---- The handle identifier for the local variable 'strings' is: =J/src<snippet{Snippet.java[Snippet~main~\[QString;@strings!129!160!147!153!QArrayList<QString;>; When I pass this to JavaCore.create(String), I get an invalid ILocalVariable with this handle identifier: =J/src<snippet{Snippet.java[Snippet~main~\[QString;@strings!129!160!147!153!QArrayList '<QString;>;' is missing at the end. I know that handles for local variables are not stable when the source changes, but I would still expect this to work as long as there are no changes. This is a problem for bug 233632, where I encode links in the browser widget using the handle identifier.
Created attachment 110547 [details] Proposed fix and regression test
Fix and test released for 3.5M2
Verified for 3.5M2 using I20080914-2000