Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2020

java.lang properties should be coerced to null

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.0.7
    • None
    • tapestry-ioc
    • None

    Description

      Type coercion automatically coerces null objects of type like Integer and Double to 0.
      I don't think that in most cases this is the desired behaviour. null is definitely different from 0 so Tapestry is loosing information in the middle.

      My suggestion is that the types in java.lang when null should be coerced to null. The collection type should be coerced to empty collections like they currently are.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hpalma Hugo Palma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: