Bug 111481 - varargs doesn't work for ITD'd constructors
Summary: varargs doesn't work for ITD'd constructors
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.5.0 M4   Edit
Assignee: Helen Beeken CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-04 12:25 EDT by Helen Beeken CLA
Modified: 2005-10-05 07:59 EDT (History)
0 users

See Also:


Attachments
zip file containing test and fix patches (1.55 KB, application/zip)
2005-10-05 03:51 EDT, Helen Beeken CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helen Beeken CLA 2005-10-04 12:25:10 EDT
The following program doesn't compile:


class MyClass {

  public static void main(String []argv) {
    new MyClass(new Object[]{"a","b","c"});
    new MyClass("a","b","c");
  }

}
aspect A {
    public MyClass.new(Object... names) {
    	System.out.println(names[0]);
    }

}

(this is similar to bug 110906)
Comment 1 Andrew Clement CLA 2005-10-04 12:55:24 EDT
One for Helen :)
Comment 2 Helen Beeken CLA 2005-10-05 03:51:48 EDT
Created attachment 27849 [details]
zip file containing test and fix patches

The zip file contains two patches:

- pr111481-org-aspectj-ajdt-core-patch.txt to be applied to the
org.aspectj.ajdt.core project
- pr111481-tests-patch.txt to be pplied to the tests project

The fix involved porting the changes made to the build method in
.../asm/InterTypeMethodDeclaration.java for the fix for bug 110906 to the build
method in .../asm/InterTypeConstructorDeclaration.java.
Comment 3 Andrew Clement CLA 2005-10-05 04:13:40 EDT
patch integrated, waiting on build.
Comment 4 Andrew Clement CLA 2005-10-05 07:59:39 EDT
fix available.