Description
When creating a java.net.URI Object,there is no handling of a URISyntaxException.
Given a specific record generated from the following avsc:
(code:java)
{"namespace": "example.avro",
"type": "record",
"name": "User",
"fields": [
,
,
,
{
"name": "ownerAddress",
"type": [
"null",
],
"default": null
}
]
}(code)
(code:java)
@org.apache.avro.specific.AvroGenerated
public class User extends org.apache.avro.specific......
{
......
private java.net.URI ownerAddress;
......
this.ownerAddress = new java.net.URI(in.readString());
//There is Unhandled exception type URISyntaxException
}
}(code)
If you want to use the customDecode method, there will be an error