Details
-
New Feature
-
Resolution: Won't Fix
-
Major - P3
-
None
-
2.1
-
None
-
java version "1.6.0_21"
Description
"is"-style getter is ignored by ReflectionObject.
Domain class:
--------------------------------------------------------
package test;
import com.mongodb.ReflectionDBObject;
public class Something extends ReflectionDBObject {
private String kk;
private boolean bb;
public Something(String kk, boolean bb)
{ this.kk = kk; this.bb = bb; }public String getKk()
{ return kk; }public void setKk(String kk)
{ this.kk = kk; }public boolean isBb()
{ return bb; }public void setBb(boolean bb)
{ this.bb = bb; }}
Application class:
--------------------------------------------------------
package test;
import com.mongodb.*;
import java.net.UnknownHostException;
public class BooleanGetterApp {
public static void main(String[] args) {
try
catch (UnknownHostException e)
{ e.printStackTrace(); } }
}
Application output:
--------------------------------------------------------
{ "_id" :
{ "$oid" : "4cab3c5417066088cabbebf3"}, "Kk" : "kk"}
– boolean value was ignored.