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/11 14:22:00 UTC
[jira] [Resolved] (MYFACES-4474) jakarta.faces.convert.NumberConverter.setType validation causes a TCK failure
[ https://issues.apache.org/jira/browse/MYFACES-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Nicolucci resolved MYFACES-4474.
-------------------------------------
Resolution: Fixed
> 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: 4.0.0-RC1, 2.3-next-M7
> Reporter: Paul Nicolucci
> Assignee: Paul Nicolucci
> Priority: Major
> Fix For: 2.3-next-M8, 4.0.0-RC2
>
>
> 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)