PolarStereographic and Orthographic do call static doubleValue() method whose 
binding is ambigous
-------------------------------------------------------------------------------------------------

                 Key: GEOT-2461
                 URL: http://jira.codehaus.org/browse/GEOT-2461
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing
    Affects Versions: 2.5.4
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.5.5


The ScriptTest class fails under Java 6 on Linux i386 on the orthographic and 
polar stereographic scripts.
The funny thing is that it fails when compiled with java6 even if after that 
you run with java5 (the maven compiler is setup for java 5 compliance). 
This means the issue is in how the compiler behaves.
Debugging shows that the java5 compiler binds the call to doubleValue() to 
AbstractProvider in java5, but to another class (don't remember exactly which 
one) in java 6, the former does a conversion from deegree to radians, the 
latter does not.
This results in the PolarStereographic transform to be chosen in Java5, whilst 
a subclass of StereographicUSGS is chosen in java6, obviously leading to 
different results in the transform.

The Eclipse compiler usually returns a warning for calls to static methods 
without class qualification (just method() instead of XXX.method()).
This is exactly the reason why.
Makind those two classes explictly call AbstractProvider.doubleValue() fixes 
the issue and allows the Java6 build to go on.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to