Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320947 - Quickfix to create "this" constructor called from ITD misbehaves
Summary: Quickfix to create "this" constructor called from ITD misbehaves
Status: NEW
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.1.2   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-26 14:43 EDT by Kris De Volder CLA
Modified: 2010-12-08 19:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.