The following test fails on Linux and Windows while executing against HotSpot Server VM in -Xcomp mode.
------------ test.java -----------
public class test {
public static void main (String[] args) {
String[] modulos={"1" , "2"};
for (int md=0; md<modulos.length; md++) {
BigInteger modulo = new BigInteger(modulos[md]);
System.out.println(modulo);
new BigInteger("10").mod(modulo);
}
}
}
----------------------------------
Below is output from the test execution:
-----------------------------------------------------
%java -server -Xcomp test
1
2
Exception in thread "main" java.lang.ArithmeticException: / by zero
<<no stack trace available>>
%java -server test
1
2
%java -client -Xcomp test
1
2
%java -client test
1
2
%
-----------------------------------------------------
The JDK version is:
java version "1.3.1beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1beta-b08)
Java HotSpot(TM) Server VM (build 1.3.1beta-b08, compiled mode)
The test passes in -Xmixed and in -Xint modes against JDK 1.3.1 Server VM; as well as the test passes in all execution modes against the Client VM.
The test passes against JDK 1.3.1-b07 both Client and Server VMs in all execution modes.
The following JCK1.3 api tests fail due to this bug against JDK1.3.1beta-b08 HS Server VM in -Xcomp mode:
api/java_math/BigDecimal/index.html#SetScale
api/java_math/BigDecimal/index.html#XXXXValue
api/java_math/BigDecimal/index.html#Divide
api/java_math/BigInteger/index.html#Mod
api/java_math/BigInteger/index.html#Arithm
api/java_math/BigInteger/index.html#GCD
api/java_math/BigInteger/index.html#Conversion
api/java_text/DecimalFormat/index.html#Format
api/java_security/Signer/SignerTests.html#keymethods
api/java_security/Signature/SignatureTests.html#toString
api/java_security/Signature/SignatureTests.html#signTests
api/java_security/Signature/SignatureTests.html#initSign
api/java_security/Signature/SignatureTests.html#initVerify
api/java_security/Signature/SignatureTests.html#SIGclone
api/java_security/Signature/SignatureTests.html#update
api/java_security/Signature/SignatureTests.html#verify
api/java_security/spec/X509EncodedKeySpec/X509EncodedKeySpecTests.html#getFormatTests
api/java_security/spec/PKCS8EncodedKeySpec/PKCS8EncodedKeySpecTests.html#getFormatTests
api/java_security/SignedObject/SignedObjectTests.html#CtorGetTests
api/java_security/SignedObject/SignedObjectTests.html#getSignatureTests
api/java_security/SignedObject/SignedObjectTests.html#verifyTests
api/java_security/KeyPairGenerator/KeyPairGeneratorTests.html#generateKeyPair
api/java_security/KeyPair/KeyPairTests.html#getPrivate
api/java_security/KeyPair/KeyPairTests.html#getPublic
api/java_security/KeyFactory/KeyFactoryTests.html#generatePrivateTests
api/java_security/KeyFactory/KeyFactoryTests.html#getKeySpecTests
api/java_security/KeyFactory/KeyFactoryTests.html#generatePublicTests