Bug 483219 - [1.8][compiler] lambda / method reference targeting an intersection type
Summary: [1.8][compiler] lambda / method reference targeting an intersection type
Status: CLOSED DUPLICATE of bug 577466
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2015-11-28 14:06 EST by Stephan Herrmann CLA
Modified: 2023-05-10 02:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2015-11-28 14:06:23 EST
It seems also ecj is affected by javac's bug discussed in http://mail.openjdk.java.net/pipermail/compiler-dev/2015-November/009824.html
Comment 1 Stephan Herrmann CLA 2015-11-28 14:07:47 EST
Hm, the corresponding https://bugs.openjdk.java.net/browse/JDK-8141508 is marked as resolved for Java 9, but I don't think anything stops us from delivering a fix before J9 release.
Comment 3 Stephan Herrmann CLA 2017-12-08 18:09:03 EST
This fell between the cracks for Oxygen.1a.

Let's try to fix https://bugs.openjdk.java.net/browse/JDK-8191655 at the same time.
Comment 4 Manoj N Palat CLA 2018-05-17 03:24:58 EDT
bulk move out of 4.8
Comment 5 Manoj N Palat CLA 2018-08-16 00:08:54 EDT
Bulk move out of 4.9
Comment 6 Eclipse Genie CLA 2022-07-23 13:40:14 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Srikanth Sankaran CLA 2023-05-10 02:31:12 EDT
Without the fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=577466:

(1) the code snippet in 
https://mail.openjdk.org/pipermail/compiler-dev/2015-November/009824.html:

crashes at runtime ==> Problem present.

(2) All code snippets in https://bugs.openjdk.org/browse/JDK-8058112
run fine ==> Problem fixed independently already

(3) Snippet in https://bugs.openjdk.org/browse/JDK-8191655:
crashes with "Exception in thread "main" java.lang.BootstrapMethodError: bootstrap method initialization exception" ==> Problem present

(4) Snippets in https://stackoverflow.com/questions/27031244/lambdaconversionexception-with-generics-jvm-bug:

Crash with:
"Exception in thread "main" java.lang.BootstrapMethodError: bootstrap method initialization exception" ==> Problem present

(5) Snippets in https://stackoverflow.com/questions/33925551/enum-interfaces-and-java-8-lambdas-code-compiles-but-fails-at-runtime-is-th
Crash with:
"Exception in thread "main" java.lang.BootstrapMethodError: bootstrap method initialization exception" ==> Problem present

With the fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=577466:

All these snippets run fine. I'll add regression tests and close this as a duplicate of https://bugs.eclipse.org/bugs/show_bug.cgi?id=577466
Comment 8 Srikanth Sankaran CLA 2023-05-10 02:36:43 EDT
Pull request for regression tests with various code snippets referenced here:
https://github.com/eclipse-jdt/eclipse.jdt.core/pull/1042

*** This bug has been marked as a duplicate of bug 577466 ***