Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4474

jakarta.faces.convert.NumberConverter.setType validation causes a TCK failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-RC1, 2.3-next-M7
    • 2.3-next-M8, 4.0.0-RC2
    • General
    • 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.

      Attachments

        Activity

          People

            paul.nicolucci Paul Nicolucci
            paul.nicolucci Paul Nicolucci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: