lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3538) fix java7 warnings in the source code
Date Thu, 04 Apr 2013 13:35:15 GMT


Robert Muir commented on LUCENE-3538:

Hi Furkan, thanks for looking into this. I get a couple warnings when running the following
commands with a java7 compiler:

I'm using "1.7.0_17"

svn co
cd trunk/lucene
ant compile > ../compile.log

lucene/analysis/common module:
    [javac] Compiling 360 source files to /home/rmuir/workspace/lucene-trunk/lucene/build/analysis/common/classes/java
    [javac] /home/rmuir/workspace/lucene-trunk/lucene/analysis/common/src/java/org/tartarus/snowball/
warning: [rawtypes] found raw type: Class
    [javac]   private static final Class<?>[] EMPTY_PARAMS = new Class[0];
    [javac]                                                      ^
    [javac]   missing type arguments for generic class Class<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class


lots of warnings unfortunately
    [javac]   missing type arguments for generic class Map<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in interface Map
    [javac]     V extends Object declared in interface Map
    [javac] /home/rmuir/workspace/lucene-trunk/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/
warning: [rawtypes] found raw type: Map
    [javac]   public FunctionValues getValues(Map fcontext, AtomicReaderContext readerContext)
throws IOException {

again lots of warnings, some are in generated code which is more difficult, but also some
silly ones, like:
    [javac] /home/rmuir/workspace/lucene-trunk/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/
warning: [dep-ann] deprecated item is not annotated with @Deprecated
    [javac] public class GroupQueryNodeProcessor implements QueryNodeProcessor {

lucene/memory, lucene/highlighter, lucene/benchmark, and lucene/spatial also have warnings

> fix java7 warnings in the source code
> -------------------------------------
>                 Key: LUCENE-3538
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>              Labels: newdev
> Now that oracle has fixed java7 bugs, I imagine some users will want to use it.
> Currently if you compile lucene's code with java7 you get a ton of warnings... lets clean
this up

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

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

View raw message