michalkawiak / gwtprojsonserializer

Automatically exported from code.google.com/p/gwtprojsonserializer
0 stars 0 forks source link

for 'boolean' should use getXxx() or isXxx()? #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to serialize a Object with a 'boolean' attribut. Example :
public class User {
  private String login;
  private String hashedPassword;
  private Date lastLogin;
  private boolean active;
...
  public boolean isActive() {
    return active;
  }
...
}
2. Launch GWT Developpement Mode

What is the expected output? What do you see instead?
 Error : "The method getActive() is undefined for the type User.

What version of the product are you using? On what operating system?
 gwtprojsonserializer-1.0.2.jar

Please provide any additional information below.
 For a 'boolean', gwtprojsonserializer should not use "isActive()" instead "getActive()"?

Original issue reported on code.google.com by dom....@gmail.com on 19 Oct 2010 at 7:56

GoogleCodeExporter commented 9 years ago
Hello

If you've digged a bit into the code, can you provide a patch?

Thanks

Original comment by goo...@alishomepage.com on 31 Oct 2010 at 1:08

GoogleCodeExporter commented 9 years ago
I've gotten hit by this one too. This is a little funny.

Original comment by evan.r...@gmail.com on 26 Jul 2011 at 11:13