Buggy code:
public final class TMath extends TObject { public static double E = 2.718281828459045 ; public static double PI = 3.141592653589793 ; private TMath ( ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double sin ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double cos ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double tan ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double asin ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double acos ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double atan ( double a ) { } public static double toRadians ( double angdeg ) { } public static double toDegrees ( double angrad ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double exp ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double log ( double a ) { } public static double log10 ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double sqrt ( double a ) { } public static double cbrt ( double a ) { } public static double IEEEremainder ( double f1 , double f2 ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double ceil ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double floor ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double pow ( double x , double y ) { } public static double rint ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double atan2 ( double y , double x ) { } public static int round ( float a ) { <START_BUG> return ( ( int ) ( a + 1.5F ) ) ; <END_BUG> } public static long round ( double a ) { } @ GeneratedBy ( MathNativeGenerator . class ) public static native double random ( ) { } public static int min ( int a , int b ) { } public static int max ( int a , int b ) { } public static long min ( long a , long b ) { } public static long max ( long a , long b ) { } public static double min ( double a , double b ) { } public static double max ( double a , double b ) { } public static float min ( float a , float b ) { } public static float max ( float a , float b ) { } public static int abs ( int n ) { } public static long abs ( long n ) { } public static float abs ( float n ) { } public static double abs ( double n ) { } public static double ulp ( double d ) { } public static float ulp ( float d ) { } public static double signum ( double d ) { } public static float signum ( float d ) { } public static double sinh ( double x ) { } public static double cosh ( double x ) { } public static double tanh ( double x ) { } public static double hypot ( double x , double y ) { } public static double expm1 ( double x ) { } public static double log1p ( double x ) { } public static float copySign ( float magnitude , float sign ) { } public static double copySign ( double magnitude , double sign ) { } public static int getExponent ( double d ) { } public static int getExponent ( float f ) { } public static double nextAfter ( double start , double direction ) { } public static float nextAfter ( float start , double direction ) { } public static double nextUp ( double d ) { } public static float nextUp ( float d ) { } private static class ExponentConstants { public static double [ ] exponents = new double [ ] { 2.0 , 4.0 , 16.0 , 256.0 , 65536.0 , 4.294967296E9 , 1.8446744073709552E19 , 3.4028236692093846E38 , 1.157920892373162E77 , 1.3407807929942597E154 } ; public static double [ ] negativeExponents = new double [ ] { 0.5 , 0.25 , 0.0625 , 0.00390625 , 1.52587890625E-5 , 2.3283064365386963E-10 , 5.421010862427522E-20 , 2.9387358770557188E-39 , 8.636168555094445E-78 , 7.458340731200207E-155 } ; public static double [ ] negativeExponents2 = new double [ ] { 1.0 , 0.5 , 0.125 , 0.0078125 , 3.0517578125E-5 , 4.6566128730773926E-10 , 1.0842021724855044E-19 , 5.8774717541114375E-39 , 1.727233711018889E-77 , 1.4916681462400413E-154 } ; } private static class FloatExponents { public static float [ ] exponents = new float [ ] { 2.0F , 4.0F , 16.0F , 256.0F , 65536.0F , 4.2949673E9F , 1.8446744E19F } ; public static float [ ] negativeExponents = new float [ ] { 0.5F , 0.25F , 0.0625F , 0.00390625F , 1.5258789E-5F , 2.3283064E-10F , 5.421011E-20F } ; public static float [ ] negativeExponents2 = new float [ ] { 1.0F , 0.5F , 0.125F , 0.0078125F , 3.0517578E-5F , 4.656613E-10F , 1.0842022E-19F } ; } }

Fix:
return ( ( int ) ( a + 0.5F ) ) ;