Problems probably related to KJC

Ito Kazumitsu ito.kazumitsu at hitachi-cable.co.jp
Wed Jan 16 17:19:58 PST 2002


In message "Re: Problems probably related to KJC"
    on 02/01/17, Ito Kazumitsu <kaz at maczuka.gcd.org> writes:

> I have made a simple program that makes kaffe dump core.

I tested the same program under several environments.

  Java VM     Compiler            Result
  -------     -----------         ----------
  JDK 1.3     kjc-1.5B            java.lang.VerifyError
  JDK 1.3     kopisusu-1.9b5      SUCCESS
  Kaffe(*)    kjc-1.5B            java.lang.NullPointerException
  Kaffe(*)    kopisusu-1.9b5      SUCCESS

   Kaffe(*): Version: 1.0.6
             ChangeLog head: 2001-08-19  Edouard G. Parmelan  <egp at free.fr>

These results make me think KJC has something to do with this issue.

========================= JDK 1.3
bash$ java -fullversion
java full version "1.3.0-C"
bash$ rm *.class; CLASSPATH=kjc-1.5B-bin.jar\;. java at.dms.kjc.Main Handler.java Driver.java Test.java; CLASSPATH=. java Test
java.lang.VerifyError: (class: Test$Test1, method: <init> signature: (LTest;Ljava/util/HashMap;)V) Incompatible type for getting or setting field
	at Test.<init>(Test.java:25)
	at Test.main(Test.java:14)
Exception in thread "main" bash$ 
bash$ rm *.class; CLASSPATH=. java -jar kopisusu/ksusu.jar Handler.java Driver.java Test.java; CLASSPATH=. java Test
sss1
sss2
sss3
sss4
sss5
sss6
sss7
bash$ 

========================= Kaffe
bash$ java -fullversion
Kaffe Virtual Machine
Copyright (c) 1996-2000
Transvirtual Technologies, Inc.  All rights reserved
Engine: Just-in-time v3   Version: 1.0.6   Java Version: 1.1
Configuration/Compilation options:
  Compile date  : Mon Sep 3 16:37:41 JST 2001
  Compile host  : pub2.hitachi-cable.co.jp
  Install prefix: /usr/local
  Thread system : unix-jthreads
  CC            : gcc
  CFLAGS        : -g -O2 -Wall -Wstrict-prototypes
  LDFLAGS       :  -export-dynamic
  ChangeLog head: 2001-08-19  Edouard G. Parmelan  <egp at free.fr>
bash$ rm *.class; CLASSPATH=kjc-1.5B-bin.jar:. java at.dms.kjc.M
ain Handler.java Driver.java Test.java; CLASSPATH=. java Test
sss1
sss2
sss3
sss4
java.lang.NullPointerException
        at java.util.HashMap.find(HashMap.java:236)
        at java.util.HashMap.find(HashMap.java:232)
        at java.util.HashMap.get(HashMap.java:100)
        at Test$Test1.<init>(Test.java:41)
        at Test.<init>(Test.java:25)
        at Test.main(Test.java:14)
bash$ rm *.class; CLASSPATH=. java -jar kopisusu/ksusu.jar Handl
er.java Driver.java Test.java; CLASSPATH=. java Test
sss1
sss2
sss3
sss4
sss5
sss6
sss7
bash$


More information about the kaffe mailing list