lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] Updated: (LUCENE-1855) Change AttributeSource API to use generics
Date Mon, 31 Aug 2009 12:42:32 GMT


Uwe Schindler updated LUCENE-1855:

    Attachment: AttributeSource.jad

For all developers that want to see, that the generics-enabled class AttributeSource is binary
compatible (so addAttribute still return Attribute in the erasured class) to the 2.9 version,
here is the de-compiled version of the class file (using JAD). This is not really full featured
java code, but shows, how the erasured class looks like (and how javac generates the advanced
FOR statements) and the covariant overriding of iterator's next(). Really interesting.

JAD is always good, to look, how a class with generic looks like for code compiled agains

> Change AttributeSource API to use generics
> ------------------------------------------
>                 Key: LUCENE-1855
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Analysis
>            Reporter: Michael Busch
>            Assignee: Uwe Schindler
>            Priority: Minor
>             Fix For: 3.0
>         Attachments: AttributeSource.jad, LUCENE-1855.patch, LUCENE-1855.patch
> The AttributeSource API will be easier to use with JDK 1.5 generics.
> Uwe, if you started working on a patch for this already feel free to assign this to you.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message