https://issues.apache.org/bugzilla/show_bug.cgi?id=51625
Bug #: 51625
Summary: [PATCH] The hashCode() of
o.a.f.fo.properties.CommonFont 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
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
The hashCode of o.a.f.fo.properties.CommonFont is always 0 due to an
initialization error of the cached hash value. This causes a lot of extra work
on the org.apache.fop.fo.properties.PropertyCache 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.