Problem building squawk-native with JAVA5SYNTAX enabled
Hello guys,
I am trying to port some code to the Squawk VM that uses java5 stuff.
Building the squawk-native branch (I couldn't get the trunk to work on my debian) works fine. But as I mentioned before I need it to work with java 5 syntax. So I set JAVA5SYNTAX in the build.properties file to true. When I run
./d.sh
I get an exception during the building of the debugger:
CompilerOracle: exclude com/sun/squawk/Method getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser stripMethods
Platform: Linux-i386
PLATFORM_TYPE=NATIVE
[running copyphoneme...]
[building cldc-native-declarations...]
[running cldc-native-declarations-gen...]
Skipping generation JNA files in ./cldc-native-declarations
[building cldc...]
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[building debugger...]
./debugger/preprocessed/tests/TestApp.java:301: Internal error: stack sim error on
static void testFP(double m, double n, int o, double p) {
double a = 6.0;
int b = 7;
double c = 8.0;
double d = 9.0;
System.out.println("m: " + m + " n: " + n + " o: " + o + " p: " + p);
System.out.println("a: " + a + " b: " + b + " c: " + c + " d: " + d);
System.out.println();
System.out.println("BITS: m: " + Double.doubleToLongBits(m) + " n: " + Double.doubleToLongBits(n) + " o: " + o + " p: " + Double.doubleToLongBits(p));
System.out.println("BITS a: " + Double.doubleToLongBits(a) + " b: " + b + " c: " + Double.doubleToLongBits(c) + " d: " + Double.doubleToLongBits(d));
System.out.println();
b = 8;
System.out.println("m: " + m + " n: " + n + " o: " + o + " p: " + p);
System.out.println("a: " + a + " b: " + b + " c: " + c + " d: " + d);
System.out.println();
System.out.println("BITS: m: " + Double.doubleToLongBits(m) + " n: " + Double.doubleToLongBits(n) + " o: " + o + " p: " + Double.doubleToLongBits(p));
System.out.println("BITS a: " + Double.doubleToLongBits(a) + " b: " + b + " c: " + Double.doubleToLongBits(c) + " d: " + Double.doubleToLongBits(d));
}
static void testFP(double m, double n, int o, double p) {
^
Exception while running command debugger
build failed: compilation failed
I use sun jdk 1.5.0_22 if that's relevant to know.
Any help is much appreciated.
Josef




