lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martijn van Groningen (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3850) Fix rawtypes warnings for Java 7 compiler
Date Thu, 08 Mar 2012 11:08:57 GMT


Martijn van Groningen commented on LUCENE-3850:

I've fixed most of the grouping compile warnings.
I now only see this warning during compilation:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
> Fix rawtypes warnings for Java 7 compiler
> -----------------------------------------
>                 Key: LUCENE-3850
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 3.5, 4.0
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 3.6, 4.0
>         Attachments: LUCENE-3850-part1-branch3x.patch, LUCENE-3850-part1.patch, LUCENE-3850-part2.patch,
> Java 7 changed the warnings a little bit:
> - Java 6 only knew "unchecked" warning type, applying for all types of generics violations,
like missing generics (raw types)
> - Java 7 still knows "unchecked" but only emits warning if the call is really unchecked.
Declaration of variables/fields or constructing instances without type param now emits "rawtypes"
> The changes above causes the Java 7 compile now emit lots of "rawtypes" warnings, where
Java 6 is silent. The easy fix is to suppres both warning types: @SuppressWarnings({"unchecked","rawtypes"})
for all those places. Changes are easy to do, will provide patch later!

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message