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

Bug 368409

Summary: MethodHandle feature of jdk7 runs error
Product: [Eclipse Project] JDT Reporter: yiyuan li <zjulyy>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: Olivier_Thomann, satyam.kandula, srikanth_sankaran
Version: 3.8   
Target Milestone: 3.8 M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description yiyuan li CLA 2012-01-12 00:48:21 EST
Build Identifier: M20110909-1335

I run samples listed in javadoc of MethodHandle, which is a new feature of JDK7. It could run well in command line. But it could not compile and had runtime exception in eclipse ide. I think there are some error with ECJ, it had not support jdk7 completely.

Reproducible: Always

Steps to Reproduce:
1. copy the examples listed in javadoc of java.lang.invoke.MethodHandle, include some examples listed in the methoeds javadoc of the class, into eclipse to run
2. complile and run the source in command line, all run well
3. complile and run in eclipse, then errors occur
Comment 1 Satyam Kandula CLA 2012-01-12 01:30:40 EST
I am unable to reproduce this problem with 3.7.1 and 3.8 M4. Can you please give the exact testcase?
Comment 2 Srikanth Sankaran CLA 2012-01-12 05:38:03 EST
(In reply to comment #0)
> Build Identifier: M20110909-1335
> 
> I run samples listed in javadoc of MethodHandle, which is a new feature of
> JDK7. It could run well in command line. But it could not compile and had
> runtime exception in eclipse ide.

Please attach a stack trace and/or clear error messages you are getting.
Also try with a more recent version.
Comment 3 Olivier Thomann CLA 2012-01-12 09:28:06 EST
Also please try with a more recent 3.7.2/4.1 M-build or 3.8/4.2 I-build. Are you sure you are running in a project which has compiler settings set to 1.7?
Comment 4 Olivier Thomann CLA 2012-01-19 12:35:43 EST
yiyuan li, could you please provide the requested information in order to investigate this issue?
Thanks.
Comment 5 Satyam Kandula CLA 2012-03-19 11:28:23 EDT
Please reopen the bug if you have more details.
Comment 6 Stephan Herrmann CLA 2012-05-01 06:16:50 EDT
Verified for 3.8 M7 using build I20120430-1800.