You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Eelco Hillenius (JIRA)" <ji...@apache.org> on 2009/08/19 06:14:14 UTC
[jira] Created: (AVRO-101) unable to work with nested classes and
reflection based API
unable to work with nested classes and reflection based API
-----------------------------------------------------------
Key: AVRO-101
URL: https://issues.apache.org/jira/browse/AVRO-101
Project: Avro
Issue Type: Bug
Components: java
Affects Versions: 1.0.0, 1.0.1
Reporter: Eelco Hillenius
Fix For: 1.0.1
Attachments: AVRO-101.patch
It is currently not possible to work with nested classes and the reflection API. Only the package and classname are recorded. The test case that I'll attach to this issues writes this as the schema: {"type":"record","name":"BazRecord","namespace":"org.apache.avro","fields":[{"name":"nbr","type":"int"}]}, even though it is a nested class. The reader then tries to instantiate org.apache.avro.BazRecord, while it should instantiate org.apache.avro.TestDataFileReflect$BazRecord.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AVRO-101) unable to work with nested classes and
reflection based API
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doug Cutting resolved AVRO-101.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
Assignee: Eelco Hillenius
I committed these tests. Thanks, Eelco!
> unable to work with nested classes and reflection based API
> -----------------------------------------------------------
>
> Key: AVRO-101
> URL: https://issues.apache.org/jira/browse/AVRO-101
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.0.0, 1.1.0
> Reporter: Eelco Hillenius
> Assignee: Eelco Hillenius
> Fix For: 1.2.0
>
> Attachments: AVRO-101.patch
>
>
> It is currently not possible to work with nested classes and the reflection API. Only the package and classname are recorded. The test case that I'll attach to this issues writes this as the schema: {"type":"record","name":"BazRecord","namespace":"org.apache.avro","fields":[{"name":"nbr","type":"int"}]}, even though it is a nested class. The reader then tries to instantiate org.apache.avro.BazRecord, while it should instantiate org.apache.avro.TestDataFileReflect$BazRecord.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AVRO-101) unable to work with nested classes and
reflection based API
Posted by "Eelco Hillenius (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eelco Hillenius updated AVRO-101:
---------------------------------
Attachment: AVRO-101.patch
> unable to work with nested classes and reflection based API
> -----------------------------------------------------------
>
> Key: AVRO-101
> URL: https://issues.apache.org/jira/browse/AVRO-101
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.0.0, 1.0.1
> Reporter: Eelco Hillenius
> Fix For: 1.0.1
>
> Attachments: AVRO-101.patch
>
>
> It is currently not possible to work with nested classes and the reflection API. Only the package and classname are recorded. The test case that I'll attach to this issues writes this as the schema: {"type":"record","name":"BazRecord","namespace":"org.apache.avro","fields":[{"name":"nbr","type":"int"}]}, even though it is a nested class. The reader then tries to instantiate org.apache.avro.BazRecord, while it should instantiate org.apache.avro.TestDataFileReflect$BazRecord.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-101) unable to work with nested classes and
reflection based API
Posted by "Eelco Hillenius (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744874#action_12744874 ]
Eelco Hillenius commented on AVRO-101:
--------------------------------------
Uploaded unit test that shows the issue.
> unable to work with nested classes and reflection based API
> -----------------------------------------------------------
>
> Key: AVRO-101
> URL: https://issues.apache.org/jira/browse/AVRO-101
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.0.0, 1.0.1
> Reporter: Eelco Hillenius
> Fix For: 1.0.1
>
> Attachments: AVRO-101.patch
>
>
> It is currently not possible to work with nested classes and the reflection API. Only the package and classname are recorded. The test case that I'll attach to this issues writes this as the schema: {"type":"record","name":"BazRecord","namespace":"org.apache.avro","fields":[{"name":"nbr","type":"int"}]}, even though it is a nested class. The reader then tries to instantiate org.apache.avro.BazRecord, while it should instantiate org.apache.avro.TestDataFileReflect$BazRecord.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.