[Geoserver-devel] Trunk does not compile?

Hi,
I've just updated and built gt2 trunk, and then did the
same on geoserver trunk... I was greeted with the following
compile error:

[INFO] Building Main Module
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 61 source files to C:\progetti\geoserver\src\trunkClean\geoserver\main\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\progetti\geoserver\src\trunkClean\geoserver\main\src\main\java\org\vfny\geoserver\config\FeatureTypeConfig.java:[250,30] cannot find symbol
symbol : method getEPSGCode(org.opengis.referencing.crs.CoordinateReferenceSystem)
location: class org.geotools.referencing.CRS
C:\progetti\geoserver\src\trunkClean\geoserver\main\src\main\java\org\vfny\geoserver\global\dto\DataTransferObjectFactory.java:[170,30] cannot find symbol
symbol : method getEPSGCode(org.opengis.referencing.crs.CoordinateReferenceSystem)
location: class org.geotools.referencing.CRS

Oh hum... strange? What's up? I remember Justin and Martin talking about this method... I guess there is some mis-alignement between the two
code bases? Or is it just my checkout?
Cheers
Andrea

Andrea Aime a écrit :

cannot find symbol
symbol : method
getEPSGCode(org.opengis.referencing.crs.CoordinateReferenceSystem)
location: class org.geotools.referencing.CRS

I just send the email on the Geotools mailing list a few minutes ago... Justin
added this method two days ago, and I refactored it (with Justin's permission)
in order to use the same framework than 'lookupIdentifier' that you contributed
to create a few months ago.

Just replaces every occurences of:

    CRS.getEPSGCode(crs);

by

    CRS.lookupEpsgCode(crs, false);

you may also consider providing 'true' for the boolean argument, with the same
execution cost than 'lookupIdentifier' (actually a little bit less since this
method scan only EPSG factories, not all factories).

  Martin