Bug 78467 - [1.5] Generic Varargs method produces internal error
Summary: [1.5] Generic Varargs method produces internal error
Status: RESOLVED DUPLICATE of bug 77422
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 20:50 EST by Dave Latham CLA
Modified: 2006-06-23 19:00 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Latham CLA 2004-11-11 20:50:03 EST
This occurs in 3.1M3.

The following code produces a dialog that pops up, saying:
  An internal error occurrerd during "Java AST creation"

public class GenericVarargsTest {

    public <T> T
    first(T... args) {
        return args[0];
    }
    
    public void
    main(String[] args) {
        System.out.println(first("A", "List"));
    }
}
Comment 1 Philipe Mulet CLA 2004-11-12 09:17:34 EST
Added regression test: GenericTypeTest#test412

*** This bug has been marked as a duplicate of 77422 ***
Comment 2 Dave Latham CLA 2004-11-12 12:03:01 EST
Verified in N20041112.  Keep up the good work!
Comment 3 Frederic Fusier CLA 2004-11-12 13:32:15 EST
Thanks for your congratulations :-) ... but do not modify bug status, this is
done by JDT/Core member team while validating milestone.
Comment 4 Frederic Fusier CLA 2004-11-12 13:32:51 EST

*** This bug has been marked as a duplicate of 77422 ***
Comment 5 Philipe Mulet CLA 2006-06-23 18:57:24 EDT
Reopening, this issue is still not addressed. Dup bug got fixed when at least one argument is provided. In this scenario no argument got supplied, and other fix doesn't suffice.
Comment 6 Philipe Mulet CLA 2006-06-23 19:00:27 EDT
Oops, wrong comment. Re-Closing.

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