This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28447 - Incorrect use of BigDecimal.equals() in multiple CSSValues [WITH PATCH]
Summary: Incorrect use of BigDecimal.equals() in multiple CSSValues [WITH PATCH]
Status: NEW
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Parser (show other bugs)
Version: CSS Validator
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-08 16:41 UTC by Hannes Erven
Modified: 2015-04-08 16:41 UTC (History)
0 users

See Also:


Attachments
Suggested patch (4.55 KB, text/plain)
2015-04-08 16:41 UTC, Hannes Erven
Details

Description Hannes Erven 2015-04-08 16:41:17 UTC
Created attachment 1596 [details]
Suggested patch

BigDecimal.compareTo()==0 must be used to compare BigDecimal's values, not BigDecimal.equals(). A similar issue has already been fixed in Bug#19011, but have been reintroduced with the recent rework.