Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353099

Summary: [1.7][introduce indirection] should not be available for polymorphic signature method
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, deepakazad, markus.kell.r
Version: 3.7   
Target Milestone: 3.7.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Fix & test none

Description Markus Keller CLA 2011-07-26 08:37:55 EDT
Created attachment 200353 [details]
Fix & test

BETA_JAVA7

Introduce Indirection should not be available for polymorphic signature methods, e.g. invokeGeneric here:

package p;

import java.lang.invoke.MethodHandle;

public class Foo {
    void m(MethodHandle mh) throws Throwable {
    	mh.invokeGeneric(1, "abc", null);
    }
}
Comment 1 Markus Keller CLA 2011-07-26 08:40:13 EDT
Fixed in BETA_JAVA7.
Comment 2 Deepak Azad CLA 2011-07-26 08:43:21 EDT
By the way, invokeGeneric(..) has been renamed to invoke(..).
Comment 3 Markus Keller CLA 2011-07-26 08:58:26 EDT
> By the way, invokeGeneric(..) has been renamed to invoke(..).

Aargh! Thanks for the head-up. I'll update rtstubs17.jar and referencing tests.
Comment 4 Dani Megert CLA 2011-08-03 06:10:17 EDT
Verified in I20110729-1200 and M20110729-1400.