Bug in generate Getters and Setters

Re: Idea Build# 813

Hi all,

There is a bug in Generate Getters and setters when the field name starts with 'f' like 'fill' or 'filltime'. in the generated methods the 'f' is removed and the next letter is capitalized. For example, I had a class named Test with two fields, fill and fillTime. Check the generated methods:

import java.sql.Timestamp;

public class Test {
private double fill;
private Timestamp fillTime;

public double getIll() {
return fill;
}

public void setIll(double pIll) {
fill = pIll;
}

public Timestamp getIllTime() {
return fillTime;
}

public void setIllTime(Timestamp pIllTime) {
fillTime = pIllTime;
}
}

2 comments
Comment actions Permalink

Did you set "f" as a field prefix?

Re: Idea Build# 813

Hi all,

There is a bug in Generate Getters and setters when
the field name starts with 'f' like 'fill' or
'filltime'. in the generated methods the 'f' is
removed and the next letter is capitalized. For
example, I had a class named Test with two fields,
fill and fillTime. Check the generated methods:

import java.sql.Timestamp;

public class Test {
private double fill;
private Timestamp fillTime;

public double getIll() {
return fill;
}

public void setIll(double pIll) {
fill = pIll;
}

public Timestamp getIllTime() {
return fillTime;
}

public void setIllTime(Timestamp pIllTime) {
fillTime = pIllTime;
}
}


0
Comment actions Permalink

Yes I did. Please ignore my previous message. I need to remove that setting.

Thanks.

0

Please sign in to leave a comment.