Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.0-RC1, 2.3-next-M7
-
None
Description
Link to the Javadoc: https://jakarta.ee/specifications/faces/4.0/apidocs/jakarta/faces/convert/numberconverter#setType(java.lang.String)
The TCK sets an invalid type and MyFaces throws the following exception causing the TCK test to fail:
Caused by: jakarta.faces.FacesException: Uknown type: integer at jakarta.faces.convert.NumberConverter.setType(NumberConverter.java:579)
The Javadoc only says the following:
"Set the number type to be used when formatting and parsing numbers. Valid values are currency, number, or percent. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. "
The additional validation that MyFaces is doing is not compliant with the specification and needs to be removed.