* tests/regression/bugzilla/All.java: Added PR114.
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Tue, 28 Oct 2008 14:35:20 +0000 (15:35 +0100)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Tue, 28 Oct 2008 14:35:20 +0000 (15:35 +0100)
* tests/regression/bugzilla/PR114.java: New file.

tests/regression/bugzilla/All.java
tests/regression/bugzilla/PR114.java [new file with mode: 0644]

index 3a8c73b638e9b60c4a86144a4c733c96f39284b2..20724f8251051317a378904464f0d0a6fe068140 100644 (file)
@@ -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 (file)
index 0000000..84d6fa7
--- /dev/null
@@ -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() {}
+    }
+}