[ https://issues.apache.org/jira/browse/AVRO-2608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17113301#comment-17113301 ]
Hudson commented on AVRO-2608: ------------------------------ SUCCESS: Integrated in Jenkins build AvroJava #881 (See [https://builds.apache.org/job/AvroJava/881/]) AVRO-2608:The generated java-class attribute URI has an unhandle (dan: [https://github.com/apache/avro/commit/7baac0fbb5b8ff9d42e97e2dd65936318ae7f5c7]) * (edit) lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm AVRO-2608 Increase test cases (dan: [https://github.com/apache/avro/commit/b0c09361fe985fe57858f19485b43e1deeec8d89]) * (edit) lang/java/ipc/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java > The generated java-class attribute URI has an unhandled exception type of > URISyntaxException > -------------------------------------------------------------------------------------------- > > Key: AVRO-2608 > URL: https://issues.apache.org/jira/browse/AVRO-2608 > Project: Apache Avro > Issue Type: Bug > Components: java > Reporter: Zezeng Wang > Assignee: Zezeng Wang > Priority: Major > Fix For: 1.10.0 > > > 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": "name", "type": "string"}, > {"name": "favorite_number", "type": ["int", "null"]}, > {"name": "favorite_color", "type": ["string", "null"]}, > { > "name": "ownerAddress", > "type": [ > "null", > { > "type": "string", > "java-class": "java.net.URI" > } > ], > "default": null > } > ] > }{code} > and class > @org.apache.avro.specific.AvroGenerated > public class User extends org.apache.avro.specific..... > { > ...... > private java.net.URI ownerAddress; > ...... > {color:red}this.ownerAddress = new java.net.URI(in.readString());{color} > *{color:red}//There is Unhandled exception type URISyntaxException{color}* > }{ > If you want to use the customDecode method, there will be an error. -- This message was sent by Atlassian Jira (v8.3.4#803005)