Community
Participate
Working Groups
build I20071107-1300 1) checkout org.eclipse.jdt.core 2) create a scrapbook page in org.eclipse.jdt.core 3) type this code is the scrapbook page new org.eclipse.jdt.core.BindingKey("Ltest/ZZ<Ljava/lang/Object>;").isRawType(); 4) select the code and do ctrl+shift+D (Display) The evaluation never finish If you type new org.eclipse.jdt.core.BindingKey("Ltest/ZZ<Ljava/lang/Object;>;").isRawType(); then the evaluation finish correctly.
This looks like a JCore bug. A main type with the expression also fails to complete. Perhaps the BindingKeyParser is not expecting invalid syntax?
There is no specified behavior when the given key is invalid. So I guess in this case, the evaluation should just return false.
Created attachment 162425 [details] Proposed fix + regression test
Released for 3.6M7. Regression test added in: org.eclipse.jdt.core.tests.model.BindingKeyTests#test055
Verified for 3.6M7 using I20100425-2000.