Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2
-
Fix Version/s: 1.8.2-EE-GA_P01, 1.8.3
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
-
ICEsoft Forum Reference:
Description
The problem is, both Mojarra's, and our, code is wrong. Looking at the javadoc for Comparable, we see that:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html
For the mathematically inclined, the relation that defines the natural ordering on a given class C is:
{(x, y) such that x.compareTo((Object)y) <= 0}.
This means that, when x <= y, x.compareTo(y) <= 0. But if we look at UISeries.maximumSeverityAtLeastError(-), where it's trying to see if FacesMessage.SEVERITY_ERROR <= FacesContext.maximumSeverity, we're using >= 0 instead of <= 0.
FacesMessage.Severity maximumSeverity = facesContext.getMaximumSeverity();
return ( (maximumSeverity != null) && (FacesMessage.SEVERITY_ERROR.compareTo(maximumSeverity) >= 0) );
I've created a bug report with Mojarra, for their equivalent issue in UIData:
https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1589
Issue Links
- depends on
-
ICE-4667 UISeries.keepSaved performance
- Closed
Activity
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21019 | Fri Mar 19 18:14:11 MDT 2010 | mark.collette | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelseries/UISeries.java
|
Mark Collette
created issue -
Mark Collette
made changes -
Mark Collette
made changes -
ICEsoft Forum Reference | http://www.icefaces.org/JForum/posts/list/16345.page | |
Salesforce Case | [] |
Mark Collette
made changes -
Salesforce Case | [] | |
Fix Version/s | 1.8.2-EE-GA_P01 [ 10220 ] | |
Fix Version/s | 1.8.3 [ 10211 ] | |
Assignee | Mark Collette [ mark.collette ] |
Mark Collette
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Mark Collette [ mark.collette ] |
Changed the >=0 to <= 0.
TRUNK
Subversion 21019
icefaces\component\src\com\icesoft\faces\component\panelseries\UISeries.java
icefaces-ee-1.8.2_p01
Subversion 21020
icefaces\component\src\com\icesoft\faces\component\panelseries\UISeries.java