| Summary: | [1.7] [compiler] AnnotationPolymorphicSignature tag is not being set to invokeExact while compiling MethodHandle source file | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Satyam Kandula <satyam.kandula> | ||||||
| Component: | Core | Assignee: | Satyam Kandula <satyam.kandula> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | curtis.windatt.public, Olivier_Thomann, srikanth_sankaran | ||||||
| Version: | 3.7 | Flags: | Olivier_Thomann:
review+
|
||||||
| Target Milestone: | 3.7.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Satyam Kandula
Created attachment 198371 [details]
Proposed patch
java.lang.invoke.MethodHandle.PolymorphicSignature is being searched for, while java.lang.invoke.MethodHandle$PolymorphicSignature is getting passed for. I haven't removed the previous checks.
Olivier, do you think java.lang.invoke.MethodHandle.PolymorphicSignature could be passed sometimes?
Patch looks good. I'll attach a new one with typos fixed. Could you please provide steps that is passing in the new code ? Created attachment 198562 [details]
Same patch with fixed typos
Patch itself looks good, but I would like to see a test case that goes through that code. (In reply to comment #4) Adding a test case seems to be difficult, will try! In this case, just describe the steps that led to this fix, please. Thanks. Consistent way is to run this through debugger with a fresh workspace 1. Create a Java7 project with a jdk with sources. 2. Put a break point in ReferenceBinding#computeId() around the patch. 3. Create a dummy class file and try to search for Method references to MethodHandle.invokeExact(). 4. Breakpoint should be hit. Released the patch on BETA_JAVA7 branch Verified using the steps from comment #7. |