From: Christian Thalinger Date: Tue, 28 Oct 2008 14:35:20 +0000 (+0100) Subject: * tests/regression/bugzilla/All.java: Added PR114. X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=cacao.git;a=commitdiff_plain;h=475d446093e58ec8499f96cf8e3b13fb43c82b5a * tests/regression/bugzilla/All.java: Added PR114. * tests/regression/bugzilla/PR114.java: New file. --- diff --git a/tests/regression/bugzilla/All.java b/tests/regression/bugzilla/All.java index 3a8c73b63..20724f825 100644 --- a/tests/regression/bugzilla/All.java +++ b/tests/regression/bugzilla/All.java @@ -36,7 +36,8 @@ PR65.class, PR80.class, PR89.class, PR112.class, -PR113.class +PR113.class, +PR114.class }) public class All { diff --git a/tests/regression/bugzilla/PR114.java b/tests/regression/bugzilla/PR114.java new file mode 100644 index 000000000..84d6fa728 --- /dev/null +++ b/tests/regression/bugzilla/PR114.java @@ -0,0 +1,43 @@ +/* tests/regression/bugzilla/PR114.java + + Copyright (C) 2008 + CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO + + This file is part of CACAO. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. + +*/ + + +import org.junit.Test; +import static org.junit.Assert.*; + +import java.io.File; + +public class PR114 { + @Test ( expected = NoClassDefFoundError.class ) + public void test() throws NoClassDefFoundError { + // Delete the class file which is extended. + new File("PR114$A.class").delete(); + + new A().sub(); + } + + class A { + public void sub() {} + } +}