In the official document there are four new fields described. This PR adds them into the ClassUsage class, to resolve exceptions reported as #177.
Note that this change is not enough to fully support version 21.3.0.
Some test cases still fail caused by exceptions like below, and I found no solution:
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `org.mikeneck.graalvm.config.ProxyUsage<java.lang.String>` out of START_OBJECT token
at [Source: (BufferedReader); line: 2, column: 3] (through reference chain: org.mikeneck.graalvm.config.ProxyConfig[0])
at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1468)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1242)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1148)
at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.handleNonArray(StringCollectionDeserializer.java:274)
at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:183)
at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:173)
at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:21)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:291)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:250)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:27)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4524)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3479)
at org.mikeneck.graalvm.config.task.DefaultMergeConfigFileWork.readAllFromInputFiles(DefaultMergeConfigFileWork.java:67)
In the official document there are four new fields described. This PR adds them into the
ClassUsage
class, to resolve exceptions reported as #177.Note that this change is not enough to fully support version
21.3.0
. Some test cases still fail caused by exceptions like below, and I found no solution: