Summary: | different key value for second level member class of a generic type | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Zsolt Thalmeiner <thaliga> | ||||||||
Component: | Core | Assignee: | Jay Arthanareeswaran <jarthana> | ||||||||
Status: | VERIFIED INVALID | QA Contact: | |||||||||
Severity: | normal | ||||||||||
Priority: | P3 | CC: | Olivier_Thomann, srikanth_sankaran | ||||||||
Version: | 3.6 | ||||||||||
Target Milestone: | 3.7 M4 | ||||||||||
Hardware: | PC | ||||||||||
OS: | Windows Server 2003 | ||||||||||
Whiteboard: | |||||||||||
Attachments: |
|
Description
Zsolt Thalmeiner
2010-10-25 10:34:41 EDT
Created attachment 181642 [details]
Example project
Created attachment 181699 [details]
workaround patch
Created attachment 184040 [details]
Test case
Zsolt, can you provide us a test case or the steps to reproduce the problem? The attached test case produces a similar error but in a different part of the code.
Between, you meant ReferenceBinding and not ResourceBinding, right?
Thanks for the test case, Srikanth. (In reply to comment #3) > Zsolt, can you provide us a test case or the steps to reproduce the problem? > The attached test case produces a similar error but in a different part of the > code. Sorry, I have no test case for this problem :( Our AST visitor (extension of org.eclipse.jdt.internal.compiler.ASTVisitor) stores the type bindings in a map using string keys: String key = String.valueOf(typeBinding.computeUniqueKey()); These key values are different, as I described in the description. > Between, you meant ReferenceBinding and not ResourceBinding, right? Yes, I meant ReferenceBinding. I hope this will help you. If not, I should try to make small working example. (In reply to comment #4) > Thanks for the test case, Srikanth. Just for the record, this test case elicits a very similar but not identical issue. (In reply to comment #5) > I hope this will help you. If not, I should try to make small working example. I would really appreciate an example. I am not able to come up with something myself. (In reply to comment #7) > I would really appreciate an example. I am not able to come up with something > myself. I'm working on it but it is not so simple... As I see the mentioned problem appears only in our code because we are doing a project-wide analysis where binary and source bindings must have the same keys. As I see, the JDT compiler works in different way so I think this problem is not a JDT bug. Thanks, and I am sorry for wasting your time. Verified. |