Uploaded image for project: 'Apache Hop (Retired)'
  1. Apache Hop (Retired)
  2. HOP-4181

@HopMetadataProperty used with a double type cannot be deserialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Not applicable
    • None
    • None

    Description

      I just discovered that a @HopMetadataProperty used with a double primitive type cannot be deserialized. I still don't understand why it works with int and boolean primitives but not with double?

       

      To reproduce replace type int with double in test for field startYear in class org.apache.hop.metadata.serializer.json.occupation.Occupation and run tests.

       

      Caused by: java.lang.InstantiationException: double
          at java.base/java.lang.Class.newInstance(Class.java:571)
          at org.apache.hop.metadata.serializer.json.JsonMetadataParser.loadPojoProperties(JsonMetadataParser.java:230)
          ... 28 more
      Caused by: java.lang.NoSuchMethodException: double.<init>()
          at java.base/java.lang.Class.getConstructor0(Class.java:3349)
          at java.base/java.lang.Class.newInstance(Class.java:556)

      Attachments

        Issue Links

          Activity

            People

              raychang Ray Chang
              nadment Nicolas Adment
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: