lucene-dev mailing list archives

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

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

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
1.4.

> Change AttributeSource API to use generics
> ------------------------------------------
>
>                 Key: LUCENE-1855
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1855
>             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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message