Posted By:
Gerrit_Grobbelaar
Posted On:
Sunday, July 17, 2005 07:46 AM
With the previous versions of Eclipse that I used (lower than v 3.1), when I generated a constructor from, let's say, the following fields: private int domainId; private int numberOfHits; The generated constructor looked like: /** * @param domainId * @param numberOfHits */ public Constructor(int domainId, int numberOfHits) { this.domainId = domainId; this.numberOfHits = numberOfHits; } Now my problem with Eclipse 3.1 is that the generated constructor using the above mentioned 2 fields look like this: /** * @param id1 * @param id2 */ public Constructor(int id1,
More>>
With the previous versions of Eclipse that I used (lower than v 3.1), when I generated a constructor from, let's say, the following fields:
private int domainId;
private int numberOfHits;
The generated constructor looked like:
/**
* @param domainId
* @param numberOfHits
*/
public Constructor(int domainId, int numberOfHits) {
this.domainId = domainId;
this.numberOfHits = numberOfHits;
}
Now my problem with Eclipse 3.1 is that the generated constructor using the above mentioned 2 fields look like this:
/**
* @param id1
* @param id2
*/
public Constructor(int id1, int id2) {
this.domainId = id1;
this.numberOfHits = id2;
}
This is a huge problem for me (the "id*" syntax). I browsed around in the Eclipse 3.1 preferences, but can not see where to change this generation mechanism.
Please help if you have had this problem as well and found a solution.
Thanks,
G.
<<Less