Bug 440752 - [1.8][compiler] Ambiguous error method for function with vararg and generic parameters
Summary: [1.8][compiler] Ambiguous error method for function with vararg and generic p...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-30 06:40 EDT by shankha banerjee CLA
Modified: 2022-06-08 05:48 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shankha banerjee CLA 2014-07-30 06:40:53 EDT
Please See Bug 437973 Comment 11 and 437973 Comment 8.
This bug could be related to 15.12.2.5. Choosing the Most Specific Method
First bullet. 

class Y {}
class Z extends Y {}
class A{}
public class X {

    <T> void foo(T t, Z ... z) {}
    <T> void foo(T t, Z z, Y ... y) {}
    void bar() {
        foo(new A(), new Z()); // [1] error with ecj 1.8       
    }
    public static void main(String[] args) {}
}

Code compiles without any issues with javac and ecj 1.7.
Comment 1 Eclipse Genie CLA 2019-11-17 19:37:35 EST
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 2 Stephan Herrmann CLA 2019-11-21 09:04:43 EST
still relevant in I20191113-2315, accepted at 1.7, rejected above.

All javac version that I tested accept.
Comment 3 Manoj N Palat CLA 2020-02-25 18:41:34 EST
Bulk move out of 4.15 M3
Comment 4 Stephan Herrmann CLA 2020-05-18 18:46:34 EDT
Bulk move of unassigned bugs to 4.17
Comment 5 Eclipse Genie CLA 2022-06-08 05:48:48 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.