[jira] [Commented] (AVRO-2608) The generated java-class attribute URI has an unhandled exception type of URISyntaxException
[ https://issues.apache.org/jira/browse/AVRO-2608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)
[jira] [Commented] (AVRO-2608) The generated java-class attribute URI has an unhandled exception type of URISyntaxException
[ https://issues.apache.org/jira/browse/AVRO-2608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17113252#comment-17113252 ] ASF subversion and git services commented on AVRO-2608: --- Commit 7baac0fbb5b8ff9d42e97e2dd65936318ae7f5c7 in avro's branch refs/heads/master from zeshuai007 [ https://gitbox.apache.org/repos/asf?p=avro.git;h=7baac0f ] AVRO-2608:The generated java-class attribute URI has an unhandle excpeiont type of URISyntaxException > 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)
[jira] [Commented] (AVRO-2608) The generated java-class attribute URI has an unhandled exception type of URISyntaxException
[ https://issues.apache.org/jira/browse/AVRO-2608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17113253#comment-17113253 ] ASF subversion and git services commented on AVRO-2608: --- Commit b0c09361fe985fe57858f19485b43e1deeec8d89 in avro's branch refs/heads/master from zeshuai007 [ https://gitbox.apache.org/repos/asf?p=avro.git;h=b0c0936 ] AVRO-2608 Increase test cases > 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)
[jira] [Commented] (AVRO-2608) The generated java-class attribute URI has an unhandled exception type of URISyntaxException
[ https://issues.apache.org/jira/browse/AVRO-2608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16969040#comment-16969040 ] Zezeng Wang commented on AVRO-2608: --- You right, this java.net.URL also has the same situation, I will fix this problem in PR. > 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.lang.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)
[jira] [Commented] (AVRO-2608) The generated java-class attribute URI has an unhandled exception type of URISyntaxException
[ https://issues.apache.org/jira/browse/AVRO-2608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16967480#comment-16967480 ] Ryan Skraba commented on AVRO-2608: --- This should probably be supported -- in the code there are five ["common stringable classes"|https://github.com/apache/avro/blob/2d3b1fe7efd865639663ba785877182e7e038c45/lang/java/avro/src/main/java/org/apache/avro/specific/SpecificData.java#L102], including {{java.net.URI}}. What do you think about adding {{java.net.URL}} to the fix? Only URI and URL throw a non-RuntimeException in the single-string constructor. > 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.lang.URI" > } > ], > "default": null > } > ] > }(code) > (code:java) > @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}* > }(code) > If you want to use the customDecode method, there will be an error. -- This message was sent by Atlassian Jira (v8.3.4#803005)