You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Paul Nicolucci (Jira)" <de...@myfaces.apache.org> on 2022/10/06 03:13:00 UTC

[jira] [Created] (MYFACES-4474) jakarta.faces.convert.NumberConverter.setType validation causes a TCK failure

Paul Nicolucci created MYFACES-4474:
---------------------------------------

             Summary: jakarta.faces.convert.NumberConverter.setType validation causes a TCK failure
                 Key: MYFACES-4474
                 URL: https://issues.apache.org/jira/browse/MYFACES-4474
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 2.3-next-M7, 4.0.0-RC1
            Reporter: Paul Nicolucci
            Assignee: Paul Nicolucci


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:


{code:java}
Caused by: jakarta.faces.FacesException: Uknown type: integer
    at jakarta.faces.convert.NumberConverter.setType(NumberConverter.java:579)
{code}

The Javadoc only says the following: 
{noformat}
"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. " 
{noformat}

The additional validation that MyFaces is doing is not compliant with the specification and needs to be removed.





--
This message was sent by Atlassian Jira
(v8.20.10#820010)