>
>       */
>      public boolean equals(Object obj) {
>          if (obj instanceof Boolean) {
> - return value == ((Boolean)obj).booleanValue();
> + return value == (Boolean) obj;
>          }
>
>
This is not correct, since we might have multiple Boolean objects that are
equals, but not ==.
Do we have a test that would catch this?

Reply via email to