You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Binglin Chang (JIRA)" <ji...@apache.org> on 2011/04/22 09:40:05 UTC

[jira] [Created] (AVRO-809) SpecificData.getClassName give wrong Class name when namespace==""

SpecificData.getClassName give wrong Class name when namespace==""
------------------------------------------------------------------

                 Key: AVRO-809
                 URL: https://issues.apache.org/jira/browse/AVRO-809
             Project: Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.5.0
            Reporter: Binglin Chang


ReflectData.createSchema and ReflectData.getProtocol generate namespace "" when the class have no namespace, but SpecificData.getClassName generate wrong class names when namespace equals ""
For example, class "Hello" generates ".Hello"


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (AVRO-809) SpecificData.getClassName give wrong Class name when namespace==""

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated AVRO-809:
------------------------------

    Fix Version/s: 1.5.2
           Status: Patch Available  (was: Open)

> SpecificData.getClassName give wrong Class name when namespace==""
> ------------------------------------------------------------------
>
>                 Key: AVRO-809
>                 URL: https://issues.apache.org/jira/browse/AVRO-809
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.5.0
>            Reporter: Binglin Chang
>             Fix For: 1.5.2
>
>         Attachments: AVRO-809.patch
>
>
> ReflectData.createSchema and ReflectData.getProtocol generate namespace "" when the class have no namespace, but SpecificData.getClassName generate wrong class names when namespace equals ""
> For example, class "Hello" generates ".Hello"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (AVRO-809) SpecificData.getClassName give wrong Class name when namespace==""

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated AVRO-809:
------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I committed this.

> SpecificData.getClassName give wrong Class name when namespace==""
> ------------------------------------------------------------------
>
>                 Key: AVRO-809
>                 URL: https://issues.apache.org/jira/browse/AVRO-809
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.5.0
>            Reporter: Binglin Chang
>            Assignee: Doug Cutting
>             Fix For: 1.5.2
>
>         Attachments: AVRO-809.patch
>
>
> ReflectData.createSchema and ReflectData.getProtocol generate namespace "" when the class have no namespace, but SpecificData.getClassName generate wrong class names when namespace equals ""
> For example, class "Hello" generates ".Hello"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (AVRO-809) SpecificData.getClassName give wrong Class name when namespace==""

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting reassigned AVRO-809:
---------------------------------

    Assignee: Doug Cutting

> SpecificData.getClassName give wrong Class name when namespace==""
> ------------------------------------------------------------------
>
>                 Key: AVRO-809
>                 URL: https://issues.apache.org/jira/browse/AVRO-809
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.5.0
>            Reporter: Binglin Chang
>            Assignee: Doug Cutting
>             Fix For: 1.5.2
>
>         Attachments: AVRO-809.patch
>
>
> ReflectData.createSchema and ReflectData.getProtocol generate namespace "" when the class have no namespace, but SpecificData.getClassName generate wrong class names when namespace equals ""
> For example, class "Hello" generates ".Hello"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (AVRO-809) SpecificData.getClassName give wrong Class name when namespace==""

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated AVRO-809:
------------------------------

    Attachment: AVRO-809.patch

Here's a patch that fixes this, including a test.

> SpecificData.getClassName give wrong Class name when namespace==""
> ------------------------------------------------------------------
>
>                 Key: AVRO-809
>                 URL: https://issues.apache.org/jira/browse/AVRO-809
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.5.0
>            Reporter: Binglin Chang
>             Fix For: 1.5.2
>
>         Attachments: AVRO-809.patch
>
>
> ReflectData.createSchema and ReflectData.getProtocol generate namespace "" when the class have no namespace, but SpecificData.getClassName generate wrong class names when namespace equals ""
> For example, class "Hello" generates ".Hello"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira