[fpc-devel] JVM testing on x86_64

J. Gareth Moreton gareth at moreton-family.com
Wed Jun 8 17:37:00 CEST 2022


Okay. got the JDK installed (and got javac), so we're making progress!  
Mostly...

testall.sh still won't run since I'm not specifying the correct options 
I don't think.  I've gotten testall.bat partially working, but still 
getting errors (I had to add the '.java' extension to JavaClass to 
prevent another error).

C:\Users\garet\Documents\programming\fpc-opts\tests\test\jvm>javac 
-encoding utf-8 -cp ..\..\..\rtl\units\jvm-java;. JavaClass.java
JavaClass.java:9: error: cannot find symbol
   TMyClass t = new TMyClass();
   ^
   symbol:   class TMyClass
   location: class JavaClass
JavaClass.java:9: error: cannot find symbol
   TMyClass t = new TMyClass();
                    ^
   symbol:   class TMyClass
   location: class JavaClass
JavaClass.java:29: error: package test does not exist
   System.out.println("myrec.a should return 42: "+test.myrec.a);
                                                       ^
JavaClass.java:30: error: package test does not exist
   System.out.println("myrec.b should return 1234: "+test.myrec.b);
                                                         ^
JavaClass.java:31: error: package TMyClass does not exist
   System.out.println("TMyClass.rec.c should return 5678: "+TMyClass.rec.c);
^
JavaClass.java:32: error: cannot find symbol
   System.out.println("test.tcl should return 4: "+test.tcl);
                                                   ^
   symbol:   variable test
   location: class JavaClass
JavaClass.java:33: error: package test does not exist
   System.out.println("test.tcrec.a should return 1: "+test.tcrec.a);
                                                           ^
JavaClass.java:34: error: package test does not exist
   System.out.println("test.tcrec.e should return 5: "+test.tcrec.e);
                                                           ^
JavaClass.java:35: error: package test.tcnestrec does not exist
   System.out.println("test.tcnestrec.r.d should return 4: 
"+test.tcnestrec.r.d);
^
JavaClass.java:36: error: package test does not exist
   System.out.println("test.tcnestrec.r.arr[1] should return 6: 
"+test.tcnestrec.arr[1]);
                                                                      ^
JavaClass.java:37: error: cannot find symbol
   TMyClass.settestglobal(654321);
   ^
   symbol:   variable TMyClass
   location: class JavaClass
JavaClass.java:38: error: cannot find symbol
   System.out.println("TMyClass.gettestglobal should return 654321: 
"+TMyClass.gettestglobal());
                                                                      ^
   symbol:   variable TMyClass
   location: class JavaClass
JavaClass.java:39: error: cannot find symbol
   System.out.println("TMyClass.staticmul3(3) should return 9: 
"+TMyClass.staticmul3(3));

...

And the errors continue ad infinitum.  (This is on 'main', by the way)

Gareth aka. Kit


-- 
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the fpc-devel mailing list