[gdal-dev] Java bindings RuntimeException

Sascha Alexander Jopen jopen at informatik.uni-bonn.de
Sun Jul 26 17:00:27 EDT 2009


Hello,

i was indeed using GCC. Thank you for fixing and commiting the changes
that fast. Know everything works as expected. At least those few methods
i am using.

Sincerely,
Sascha

> Sascha,
> 
> I guess you are compiling with GCC ? If so, it appears that I accidently 
> removed some weeks ago a very important compilation flag that I added a few 
> months ago, namely -fno-strict-aliasing, that is necessary when compiling 
> with -O2. It appears that SWIG generates not-so-correct code in regards to 
> the C standard in the upcast methods (  *(foo**)&a = *(bar**)&b ) that the 
> compiler can happily completely remove ! 
> 
> See http://trac.osgeo.org/gdal/changeset/16006 for the revision where it was 
> introduced and http://trac.osgeo.org/gdal/changeset/17456 where it has come 
> back.
> 
> Thanks for reporting this !
> 
> Best regards,
> Even



More information about the gdal-dev mailing list