Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353099 - [1.7][introduce indirection] should not be available for polymorphic signature method
Summary: [1.7][introduce indirection] should not be available for polymorphic signatur...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7.1   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 08:37 EDT by Markus Keller CLA
Modified: 2011-08-03 06:10 EDT (History)
3 users (show)

See Also:


Attachments
Fix & test (4.68 KB, patch)
2011-07-26 08:37 EDT, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.