Is anyone else running the Java 1.7 JDK Release Candidate and experiencing
this?

I have 1.7 installed, and it appears that Geotools may not build under the
new version.  (Builds fine under 1.6.014)   The source file that fails is
utils/RangeSet.java, line 391.   The error I get is:

Compiling 249 source files to
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\target\classes
------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
Compilation failure

org/geotools/util/RangeSet.java:[391,18] invalid inferred types for N#1;
actual arguments do not conforms to inferred formal arguments

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Byte,Byte
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:405:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return add(Short.valueOf(lower), Short.valueOf(upper));
                  ^

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Short,Short
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:419:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return add(Integer.valueOf(lower), Integer.valueOf(upper));
                  ^

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Integer,Integer
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:433:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return add(Long.valueOf(lower), Long.valueOf(upper));
                  ^

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Long,Long
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:447:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return add(Float.valueOf(lower), Float.valueOf(upper));
                  ^

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Float,Float
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:461:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return add(Double.valueOf(lower), Double.valueOf(upper));
                  ^

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Double,Double
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>add(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:601:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return remove(Byte.valueOf(lower), Byte.valueOf(upper));
                     ^

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Byte,Byte
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>remove(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>remove(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:613:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return remove(Short.valueOf(lower), Short.valueOf(upper));
                     ^

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Short,Short
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>remove(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>remove(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:625:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return remove(Integer.valueOf(lower), Integer.valueOf(upper));
                     ^

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Integer,Integer
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>remove(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>remove(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:637:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return remove(Long.valueOf(lower), Long.valueOf(upper));
                     ^

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Long,Long
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>remove(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>remove(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:649:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return remove(Float.valueOf(lower), Float.valueOf(upper));
                     ^

could not parse error message:     required: Comparable<? super
Object>,Comparable<? super Object>
    found: Float,Float
  where N#1,N#2 are type-variables:
    N#1 extends Object declared in method <N#2>remove(Comparable<? super
N#2>,Comparable<? super N#2>)
    N#2 extends Object declared in method <N#2>remove(Comparable<? super
N#2>,Comparable<? super N#2>)
C:\NetBeansProjects\geotools-2.6.0\modules\library\metadata\src\main\java\org\geotools\util\RangeSet.java:661:
invalid inferred types for N#1; actual arguments do not conforms to inferred
formal arguments
        return remove(Double.valueOf(lower), Double.valueOf(upper));
                     ^


------------------------------------------------------------------------
Trace
org.apache.maven.BuildFailureException: Compilation failure
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
failure
        at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
------------------------------------------------------------------------
Total time: 1 minute 22 seconds
Finished at: Tue Dec 01 09:28:26 MST 2009
Final Memory: 37M/63M
------------------------------------------------------------------------

-- 
View this message in context: 
http://n2.nabble.com/Geotools-2-6-0-and-Java-JDK-1-7-tp4094568p4094568.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to