diff --git a/tests/decompiler/__init__.py b/tests/decompiler/__init__.py index cdc63f0e..a3d2bb7d 100644 --- a/tests/decompiler/__init__.py +++ b/tests/decompiler/__init__.py @@ -13,6 +13,7 @@ 'floattest': ([],), 'JSRTests': ([], ['x'], ['x', 'x', 'x', 'x']), 'LClassLiteralTest': ([],), + # 'NonexistentCheckcast': ([],), 'NullInference': ([], ['alice'], ['bob', 'carol']), 'OddsAndEnds': ([], ['x'], ['42'], ['4'], ['-2'], ['-0x567'], ['-5678']), 'splitnew': ([], ['-0'], ['-0', ''], ['-0', '', '', ''], diff --git a/tests/decompiler/classes/NonexistentCheckcast.class b/tests/decompiler/classes/NonexistentCheckcast.class new file mode 100644 index 00000000..1cd439c8 Binary files /dev/null and b/tests/decompiler/classes/NonexistentCheckcast.class differ diff --git a/tests/decompiler/source/BadInnerTest.j b/tests/decompiler/source/BadInnerTest.j index f208e870..796fc6bc 100644 --- a/tests/decompiler/source/BadInnerTest.j +++ b/tests/decompiler/source/BadInnerTest.j @@ -13,4 +13,4 @@ ldc "Bad inners, bad inners, whatcha gonna do?" invokevirtual java/io/PrintStream println (Ljava/lang/Object;)V return -.end method \ No newline at end of file +.end method diff --git a/tests/decompiler/source/NonexistentCheckcast.j b/tests/decompiler/source/NonexistentCheckcast.j new file mode 100644 index 00000000..90481e6c --- /dev/null +++ b/tests/decompiler/source/NonexistentCheckcast.j @@ -0,0 +1,12 @@ +; Originally created as a test for Krakatau (https://github.com/Storyyeller/Krakatau) +.class public NonexistentCheckcast +.super java/lang/Object + +.method public static main : ([Ljava/lang/String;)V + .limit stack 10 + .limit locals 10 + + aconst_null + checkcast wtf + return +.end method