From a6152b4c2c0a26835e60a8ef209cca87bec8510e Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Wed, 7 Dec 2011 21:18:25 +0100 Subject: Fix reflective toolbox producing invalid bytecode Wrapper method for AST undergoing a reflective compilation has been incorrectly marked as static. This was off the radars until one day the code being compiled declared a top-level method. During flatten that method got hoisted into the wrapper module, and its invocation got translated into an instance call upon the module. This led to static wrapper method trying to call an instance method, and that blew up the bytecode verifier. More info: https://issues.scala-lang.org/browse/SI-5266. Fixes SI-5266, review by @odersky. --- test/files/run/t5266_1.check | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test/files/run/t5266_1.check (limited to 'test/files/run/t5266_1.check') diff --git a/test/files/run/t5266_1.check b/test/files/run/t5266_1.check new file mode 100644 index 0000000000..3feac16a0b --- /dev/null +++ b/test/files/run/t5266_1.check @@ -0,0 +1,2 @@ +2 +evaluated = null \ No newline at end of file -- cgit v1.2.3