Buggy code:
public class ValueRaster extends ValueLob implements Value . ValueRasterMarker , ValueSpatial { private static final int RASTER_METADATA_SIZE = 61 ; private static final int LAST_WKB_VERSION = 0 ; private ValueRaster . RasterMetaData cachedMetaData ; public static ValueRaster get ( byte [ ] bytesNoCopy ) { } private ValueRaster ( ValueLob v ) { } public static ValueRaster createEmptyGeoRaster ( int numbands , double scaleX , double scaleY , double ipX , double ipY , double skewX , double skewY , int srid , int width , int height ) { } @ Override public ValueRaster . RasterMetaData getMetaData ( ) throws IOException { } public static ValueRaster createGeoRaster ( InputStream in , long length , DataHandler handler ) { } @ Override public Envelope getEnvelope ( ) { } @ Override public int getType ( ) { } @ Override public boolean intersectsBoundingBox ( ValueSpatial vs ) { } public static enum PixelType { PT_1BB ( 0 , 1 ) , PT_2BUI ( 1 , 1 ) , PT_4BUI ( 2 , 1 ) , PT_8BSI ( 3 , 1 ) , PT_8BUI ( 4 , 1 ) , PT_16BSI ( 5 , ( ( Short . SIZE ) // ( Byte . SIZE ) ) ) , PT_16BUI ( 6 , ( ( Short . SIZE ) // ( Byte . SIZE ) ) ) , PT_32BSI ( 7 , ( ( Integer . SIZE ) // ( Byte . SIZE ) ) ) , PT_32BUI ( 8 , ( ( Integer . SIZE ) // ( Byte . SIZE ) ) ) , PT_32BF ( 10 , ( ( Integer . SIZE ) // ( Byte . SIZE ) ) ) , PT_64BF ( 11 , ( ( Double . SIZE ) // ( Byte . SIZE ) ) ) ; final int value ; final int pixelSize ; static final Map < Integer , ValueRaster . PixelType > mapIntToEnum = new HashMap < Integer , ValueRaster . PixelType > ( ) ; private PixelType ( int value , int pixelSize ) { } public static ValueRaster . PixelType cast ( int pixelTypeIdentifier ) { } } public static class RasterBandMetaData { public static final int BANDTYPE_PIXTYPE_MASK = 15 ; public static final int BANDTYPE_FLAG_OFFDB = 1 << 7 ; public static final int BANDTYPE_FLAG_HASNODATA = 1 << 6 ; public final ValueRaster . PixelType pixelType ; public final boolean hasNoData ; public final boolean offDB ; public final double noDataValue ; public final int externalBandId ; public final String externalPath ; public final long offset ; public final long offsetPixel ; public RasterBandMetaData ( double noDataValue , ValueRaster . PixelType pixelType , boolean hasNoData , long offset ) { } public RasterBandMetaData ( double noDataValue , ValueRaster . PixelType pixelType , boolean hasNoData , int externalBandId , String externalPath , long offset ) { } } public static class RasterMetaData { public final int version ; public final int numBands ; public final double scaleX ; public final double scaleY ; public final double ipX ; public final double ipY ; public final double skewX ; public final double skewY ; public final int srid ; public final int width ; public final int height ; public final ValueRaster . RasterBandMetaData [ ] bands ; public RasterMetaData ( int version , int numBands , double scaleX , double scaleY , double ipX , double ipY , double skewX , double skewY , int srid , int width , int height ) { } public RasterMetaData ( int version , int numBands , double scaleX , double scaleY , double ipX , double ipY , double skewX , double skewY , int srid , int width , int height , ValueRaster . RasterBandMetaData [ ] bands ) { } public long getStreamOffset ( int band ) { } public long getStreamOffset ( int band , int x , int y ) { } public Coordinate getPixelCoordinate ( int x , int y ) { <START_BUG> return new Coordinate ( ( ( ( ( scaleX ) * x ) + ( ( skewY ) * y ) ) + ( ipX ) ) , ( ( ( ( scaleY ) * y ) + ( ( skewY ) * x ) ) + ( ipY ) ) ) ; <END_BUG> } public static ValueRaster . RasterMetaData fetchMetaData ( InputStream raster ) throws IOException { } public static ValueRaster . RasterMetaData fetchMetaData ( InputStream raster , boolean fetchBandsMetaData ) throws IOException { } public void writeRasterHeader ( OutputStream stream , ByteOrder endian ) throws IOException { } public Polygon convexHull ( ) { } public Envelope getEnvelope ( ) { } } }

Fix:
return new Coordinate ( ( ( ( ( scaleX ) * x ) + ( ( skewX ) * y ) ) + ( ipX ) ) , ( ( ( ( scaleY ) * y ) + ( ( skewY ) * x ) ) + ( ipY ) ) ) ;