You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Chad Parry (Jira)" <ji...@apache.org> on 2025/06/09 05:38:00 UTC

[jira] [Updated] (AVRO-4150) The Java API should create unambiguous references into the null namespace

     [ https://issues.apache.org/jira/browse/AVRO-4150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chad Parry updated AVRO-4150:
-----------------------------
    Summary: The Java API should create unambiguous references into the null namespace  (was: The Java API )

> The Java API should create unambiguous references into the null namespace
> -------------------------------------------------------------------------
>
>                 Key: AVRO-4150
>                 URL: https://issues.apache.org/jira/browse/AVRO-4150
>             Project: Apache Avro
>          Issue Type: Bug
>            Reporter: Chad Parry
>            Priority: Minor
>
> The Java API's org.apache.avro.Schema.toString implementation does not correctly serialize references into the null namespace. It always serializes such references as a name without a dot. That creates ambiguity, since it could be interpreted as a simple name that refers to a type in the same namespace as the enclosing type. One way to resolve the ambiguity would be to add a leading dot to the type name—assuming the specification is amended to allow that construction in AVRO-4149. The org.apache.avro.Schema.Parser implementation already accepts full names with a leading dot, so this would just make serialization consistent.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)