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

NumberConverter.getAsObject returns Long values for BigInteger attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.25, 2.1.19, 2.2.13, 2.3-next-M1, 2.3.5
    • None
    • None

    Description

      The method getAsObject correctly returns BigDecimal if the destination type of the value expression is BigDecimal, but returns Long if the destination type is BigInteger. This normally does not lead to problems because it will be converted when applying values, but results in an exception when there is a validation annotation for the attribute to be converted, because Long cannot be assigned to BigInteger.

      I have created a pull request: https://github.com/apache/myfaces/pull/60

      Attachments

        Activity

          People

            Unassigned Unassigned
            trettstadtnlb Tobias Rettstadt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m