kaffe test failures

Les Schaffer godzilla at netmeg.net
Wed Dec 9 13:33:40 PST 1998


Submitter-Id:  kaffe-user
Originator:    Les Schaffer
Organization: none 
Confidential:  no
Synopsis:  regression test failures from latest kaffe
Severity:  non-critical
Priority:  low
Category:  kaffe
Class:     sw-bug
Release: 1.0b3
Environment:
    System: Linux gustav 2.1.130 #3 Mon Nov 30 13:09:09 EST 1998 i586 unknown
    Architecture: i586
    Machine: Unknown
Description: 

(gustav)~/system/kaffe-1.0.b3/test/: make test
*** Running tests
HelloWorldApp ... passed
TestIntLong ... passed
TestFloatDouble ... ignored
Str ... passed
Str2 ... passed
IndexTest ... passed
StackDump ... ./TestScript: line 3: 23015 Aborted   (core dumped) $JAVA $1 >$RESULT 2>&1
	error running
	Should have got:
	java.lang.NullPointerException
	at StackDump.f(8)
	at StackDump.f(8)
	at StackDump.f(8)
	at StackDump.f(8)
	at StackDump.f(8)
	at StackDump.f(8)
	at StackDump.f(8)
	at StackDump.f(8)
	at StackDump.f(8)
	at StackDump.f(8)
	at StackDump.f(8)
	at StackDump.main(14)
	But got instead:
	It's not ThreadDeath, and there's no exception handler.
	This is something I cannot handle.
tname ... passed
ttest ... passed
ThreadInterrupt ... passed
ReflectInterfaces ... passed
TestSerializable ... passed
NullPointerTest ... passed
ConstructorTest ... passed
burford ... passed
IllegalInterface ... passed
GetInterfaces ... passed
DeadThread ... passed
SignedShort ... passed
CharCvt ... passed
BadFloatTest ... passed
ExecTest ... passed
ProcessTest ... passed
UDPTest ... passed
finaltest ... passed
finaltest2 ... passed
forNameTest ... passed
KaffeVerifyBug ... passed
Schtum ... passed
tthrd1 ... passed
Reflect ... passed
Bean ... passed
ReflectInvoke ... passed
InvTarExcTest ... error running
	Should have got:
	Caught itexception: null
	java.lang.reflect.InvocationTargetException
	at InvTarExcTest.main(13)
	Target is: throwing inner exception
	But got instead:
	Caught throwable: java.lang.Exception:
	throwing inner exception
	java.lang.Exception: throwing inner exception
	at java/lang/Throwable.<init>(37)
	at java/lang/Exception.<init>(21)
	at InvTarExcTest.f(6)
	at InvTarExcTest.main(13)
	This should not happen.
CLTest ... passed
GCTest ... passed
ThreadLocalTest ... passed
BitSetTest ... passed
ExceptionInInitializerTest ... 
	./TestScript:	line 3: 24556 Aborted   (core dumped) $JAVA $1 >$RESULT 2>&1
	error running
	Should have got:
	Static initializer test
	Running static initializer of Throw
	Now loading java.math.BigDecimal
	Success 1.
	Success 2.
	But got instead:
	Static initializer test
	Running static initializer of Throw
	It's not ThreadDeath, and there's no exception handler.
	This is something I cannot handle.
ProcessClassTest ... error running
	Should have got:
	A Segv java.lang.NullPointerException
	B First java.lang.ExceptionInInitializerError
	C Second java.lang.NoClassDefFoundError: DontExist
	D Third java.lang.ExceptionInInitializerError
	E Segv java.lang.NullPointerException
	F First java.lang.NoClassDefFoundError: First
	G Second java.lang.NoClassDefFoundError: Second
	H Third java.lang.NoClassDefFoundError: Third
	But got instead:
	A Segv java.lang.NullPointerException
	B First java.lang.NullPointerException
	C Second java.lang.NoClassDefFoundError: DontExist
	D Third java.lang.NoClassDefFoundError: DontExist
	E Segv java.lang.NullPointerException
ProcessClassInst ... error running
	Should have got:
	tan .lang.NoClassDefFoundError: Base
	m2 a base
	t2 a base
	But got instead:
	sorry, you timed out
FindSystemClass ... passed
ProcessClassLockTest ... passed
DoubleBug ... passed
Overflow ... passed
*** Failed
make: *** [test] Error 1
	     
    
How-To-Repeat:
    make test
Fix:
    
~~
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 From kaffe-owner at rpmfind.net  Thu Dec 10 03:21:09 1998
Received: (from majordom at localhost)
	by rpmfind.net (8.8.7/8.8.7) id DAA26648
	for kaffe-list; Thu, 10 Dec 1998 03:21:09 -0500
Resent-Date: Thu, 10 Dec 1998 03:21:09 -0500
Resent-Message-Id: <199812100821.DAA26648 at rpmfind.net>
X-Authentication-Warning: rpmfind.net: majordom set sender to owner-kaffe at rufus.w3.org using -f
Received: from gmailint1.globalmail.net (clubft1-out.minitel.net [193.252.91.23])
	by rpmfind.net (8.8.7/8.8.7) with ESMTP id DAA26644
	for <kaffe at rufus.w3.org>; Thu, 10 Dec 1998 03:21:05 -0500
Date: Thu, 10 Dec 1998 09:20:59 +0100 (MET)
Message-Id: <199812100820.JAA28228 at gmailint1.globalmail.net>
From: alice.dubois at lemel.fr (alice dubois)
To: kaffe at rufus.w3.org
Subject: TextEdit
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: owner-kaffe at rufus.w3.org
Precedence: bulk
Reply-To: kaffe at rufus.w3.org
Errors-To: kaffe-error at rufus.w3.org
X-loop: kaffe at rufus.w3.org
X-mailing-list: kaffe at rufus.w3.org
Resent-from: kaffe at rufus.w3.org

Hi,

TextEdit uses CheckboxMenuItem but CheckboxMenuItem doesn't extend Component
 so an exception is caught.

class CheckboxMenuItem extends MenuItem and
class MenuItem extends MenuComponent but not Component

In ItemEvt.java:
protected void dispatch () {
	((Component)source).processEvent( this);
	recycle();
}

An exception is caught when java/awt/ItemEvt.dispatch is called:
java.lang.ClassCastException: can't cast `java/awt/CheckboxMenuItem' to 
`java/awt/Component'
        at java/awt/ItemEvt.dispatch(15)
        at java/awt/EventDispatchThread.run(38) 

Alice


More information about the kaffe mailing list