Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- blocks
-
HOP-4182 Add MDI support to Number range transform
- Closed