Forward declarations are indeed usable in 1.9.0, and the code changed by
that PR is present on the 1.9 branch.
I'd guess it just got missed in the release notes (although it is a pretty
significant improvement!).

As a simple test, if I take a file like this:

protocol Test {
    record Foo {
        Bar myBar;
    }

    record Bar {
        int width;
        int height;
    }
}

And try to compile it in 1.8.2 (or earlier), I'll get an error like:
"org.apache.avro.compiler.idl.ParseException: Undefined name 'Bar', at line
3, column 13"
But if I compile it with 1.9.0, it passes.

On Fri, May 24, 2019 at 10:00 AM David Carlton <[email protected]>
wrote:

> I was excited to see Avro 1.9.0 released, but the the list of changes in
> https://s.apache.org/avro190 doesn't include
> https://issues.apache.org/jira/browse/AVRO-1723, even though the PR for
> that Jira was merged a couple of years ago (and wasn't in 1.8.2).  Does
> anybody know if that's just a bug in the Jira metadata, or if that change
> got pulled out of Avro 1.9.0?
>
> --
> David Carlton
> [email protected]
>

-- 


The information contained in this email message is PRIVATE and intended 
only for the personal and confidential use of the recipient named above. If 
the reader of this message is not the intended recipient or an agent 
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this message in error and that any review, 
dissemination, distribution or copying of this message is strictly 
prohibited.  If you have received this communication in error, please 
notify us immediately by email, and delete the original message.

Reply via email to