The implementation of equals in Variant.java of 2.0m4 seems to incorrectly cast 
the other object as a Variant...

The problem is on line 329 where it defines otherVariant. In the case where 
result is false, the equals method should just return false...

    @Override
    public boolean equals(Object other) {
        boolean result = (other instanceof Variant);
        Variant otherVariant = (Variant) other;

        // Compare the character set
        if (result) {

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2398682

Reply via email to