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

Bug 320947

Summary: Quickfix to create "this" constructor called from ITD misbehaves
Product: [Tools] AJDT Reporter: Kris De Volder <kdevolder>
Component: UIAssignee: AJDT-inbox <AJDT-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1.0   
Target Milestone: 2.1.2   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Kris De Volder CLA 2010-07-26 14:43:49 EDT
Example:
-------------
public aspect MyAspect {
	
	public MyClass.new(String string) {
		this(); //<---------------- HERE
		System.out.println("Hello");
	}

}

public class MyClass {

	public MyClass(String name1, String name2) {
	}
	
}
------------

We get an error at the marked location that the MyClass() constructor does not
exist. This error is correct and as expected.

When we request the quickfix for this error, however, the proposal is to create the MyAspect() constructor, which doesn't fix the error at all (i.e. constructor is created on the aspect rather than the ITD target type.