Bug #: 51625
           Summary: [PATCH] The hashCode() of
           is always 0.
           Product: Fop
           Version: all
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fo tree
    Classification: Unclassified

The hashCode of is always 0 due to an
initialization error of the cached hash value. This causes a lot of extra work
on the and some more memory usage.

The patch except correctly initializing the hash value, it also fixes the rest
of the hashCode() implementation. It used the fontStretch twice instead of
using the fontWeight hashCode.

Also it replaces the equals() method with the one that is auto generated by
Eclipse because the values were checked using object identity instead of the
equals method.

Please apply this patch soon.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to