diff options
author | James Iry <james.iry@typesafe.com> | 2013-05-29 14:10:02 -0700 |
---|---|---|
committer | James Iry <james.iry@typesafe.com> | 2013-05-29 14:19:25 -0700 |
commit | fc6da8d8b765ddc3c492d0884164561ca7a8b4d8 (patch) | |
tree | 65c6301aef6880e456f97d59df1bcfefce66db4a /test/files/run/classfile-format-52.check | |
parent | 9eb63c522fc3f490ff8ff3e731dca1e160a0338f (diff) | |
download | scala-fc6da8d8b765ddc3c492d0884164561ca7a8b4d8.tar.gz scala-fc6da8d8b765ddc3c492d0884164561ca7a8b4d8.tar.bz2 scala-fc6da8d8b765ddc3c492d0884164561ca7a8b4d8.zip |
Test for reading JDK 8 (classfile format 52) class files.
This commit includes a test for reading JDK 8 (classfile format 52)
class files, in particular default (aka defender) methods. It uses ASM
to generate an interface with default methods then exercises that
interface from Scala.
Surprisingly no changes are necessary to the Scala code base to support
reading format 52 class files.
Because the test can only run under JDK 8, the JDK version is checked
and the expected output is synthesized for previous versions.
Diffstat (limited to 'test/files/run/classfile-format-52.check')
-rw-r--r-- | test/files/run/classfile-format-52.check | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/classfile-format-52.check b/test/files/run/classfile-format-52.check new file mode 100644 index 0000000000..5d24ef03cc --- /dev/null +++ b/test/files/run/classfile-format-52.check @@ -0,0 +1,2 @@ +hello from publicMethod +hello from staticMethod |