Grails
  1. Grails
  2. GRAILS-8718

Springload-core breaks java reflection Field.set on premetive

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0 final
    • Fix Version/s: 2.0.1
    • Component/s: Project infrastructure
    • Labels:
    • Environment:
      All

      Description

      A exception will be thrown when setting field with primitive by java reflection value in BootStrap.groovy or in services code. Exception message like: Can not set byte field TestClass.b to java.lang.Byte

      Test code attached. Just create an empty grails 2.0 project, and use BootStrap.groovy in attachement.

        Activity

        Hide
        Andy Clement added a comment -

        Fixed in springloaded 1.0.4 build snapshots.

        Show
        Andy Clement added a comment - Fixed in springloaded 1.0.4 build snapshots.
        Hide
        soft crack added a comment -

        Problem fixed.

        Thanks!

        Show
        soft crack added a comment - Problem fixed. Thanks!

          People

          • Assignee:
            Andy Clement
            Reporter:
            soft crack
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development