Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-715

TypeCoercer.explain incorrectly reports the plan to coerce from primitive types to wrapper types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.1.0.5
    • 5.2.0
    • tapestry-ioc
    • None

    Description

      I checked 2 cases:

      typeCoercer.explain(boolean.class, Boolean.class)
      returns
      Object --> String, String --> Boolean

      typeCoercer.explain(int.class, Integer.class)
      returns
      Number --> Long, Long --> Integer

      Strange.
      Shouldn't TypeCoercer cast directly to wrapper classes?

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            ljazgar Lukasz Jazgar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: