Details
Description
The BridgeFacesContext has this around line 148:
String keepViewRoot = externalContext.getInitParameter("com.icesoft.faces.retainViewRoot");
if (keepViewRoot != null) {
retainViewRoot = Boolean.parseBoolean(keepViewRoot);
}
The parseBoolean method is only available in Java 5+. We don't compile using 1.4 for various reasons and testing is probably not catching this due to the conditional requirement for the context parameter. Should be changed to:
String keepViewRoot = externalContext.getInitParameter("com.icesoft.faces.retainViewRoot");
if (keepViewRoot != null) {
retainViewRoot = Boolean.valueOf(keepViewRoot).booleanValue();
}
String keepViewRoot = externalContext.getInitParameter("com.icesoft.faces.retainViewRoot");
if (keepViewRoot != null) {
retainViewRoot = Boolean.parseBoolean(keepViewRoot);
}
The parseBoolean method is only available in Java 5+. We don't compile using 1.4 for various reasons and testing is probably not catching this due to the conditional requirement for the context parameter. Should be changed to:
String keepViewRoot = externalContext.getInitParameter("com.icesoft.faces.retainViewRoot");
if (keepViewRoot != null) {
retainViewRoot = Boolean.valueOf(keepViewRoot).booleanValue();
}
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Modified to be 1.4 friendly.