-
Bug
-
Resolution: Fixed
-
P4
-
8, 11, 17, 21, 22
-
b26
The implementation of equals method was added JDK-7083187 to most of CSS.CssValue classes, but CSS.BackgroundImage doesn't implement equals.
Steps to reproduce:
Add these strings into EQUALS arrays in the javax/swing/text/html/CSS/4765271/CSSAttributeEqualityBug.java test:
"background-image: none",
"background-image: url(image.png)",
The test fails:
background-image=none is not equal to background-image=none
background-image=url(image.png) is not equal to background-image=url(image.png)
Exception in thread "main" java.lang.RuntimeException: The test failed: 2 failure(s) detected: background-image=none is not equal to background-image=none
at CSSAttributeEqualityBug.main(CSSAttributeEqualityBug.java:122)
Steps to reproduce:
Add these strings into EQUALS arrays in the javax/swing/text/html/CSS/4765271/CSSAttributeEqualityBug.java test:
"background-image: none",
"background-image: url(image.png)",
The test fails:
background-image=none is not equal to background-image=none
background-image=url(image.png) is not equal to background-image=url(image.png)
Exception in thread "main" java.lang.RuntimeException: The test failed: 2 failure(s) detected: background-image=none is not equal to background-image=none
at CSSAttributeEqualityBug.main(CSSAttributeEqualityBug.java:122)
- relates to
-
JDK-7083187 Class CSS.CssValue is missing implementations of equals() and hashCode()
-
- Resolved
-