- changed status to open
GetterSetter generation bug when variable name starts with "is"
Issue #2566
resolved
Given the simple class with two instance variables isSuccess
and issuedToName
, the Generate > Getter/Setter strips the “is” from the String variable
public with sharing class ExampleApexType {
Boolean isSuccess;
String issuedToName;
public Boolean isSuccess() { return isSuccess; }
public ExampleApexType withSuccess(Boolean success) {
this.isSuccess = success;
return this;
}
public String getSuedToName() { return issuedToName; } <== oops! method name is wrong
public ExampleApexType withSuedToName(String suedToName) { <== oops, method & arg name are wrong
this.issuedToName = suedToName;
return this;
}
}
Comments (4)
-
repo owner -
repo owner - removed version
-
repo owner Fix committed for the next official build.
-
repo owner - changed status to resolved
Delivered in 2.3.2.0.
- Log in to comment
I like that. It sounds like flippant legislation!
Thanks for reporting. Should be pretty simple to address.