Bool It
new Boolean(true);
Correct ? No ! Because
new Boolean(true) != new Boolean(true);
But
Boolean.TRUE == Boolean.TRUE;
and
Boolean.valueOf(true) == Boolean.valueOf(true);
It is a java design problem but it is too late to correct it, the constructor is public.
Some serialization and deserialization failed because of it.
No comments:
Post a Comment