diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-26 13:31:48 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-26 15:57:17 -0700 |
commit | b2c67b328daeaf51eacdb0333db85a7287b5fe1f (patch) | |
tree | 507b4785430fe9d06b4037c7a8c2850ad6cf0511 /bincompat-forward.whitelist.conf | |
parent | fbb13630d3c1dc9b8fdc503538d4ace5873f31c9 (diff) | |
download | scala-b2c67b328daeaf51eacdb0333db85a7287b5fe1f.tar.gz scala-b2c67b328daeaf51eacdb0333db85a7287b5fe1f.tar.bz2 scala-b2c67b328daeaf51eacdb0333db85a7287b5fe1f.zip |
SI-7398 Add support for java8 default methods
In classfile parser: mark symbols which represent interface
methods yet have code attributes with new flag DEFAULTMETHOD.
These must be kept distinct from regular method bodies so that
an error can be issued when a regular concrete method is
overridden without the override keyword, but not when the
overridden method is a default.
In java source parser: mark Modifiers of interface default
methods with DEFAULTMETHOD flag.
Writing the test was everything I dreamed, and more! However,
% test/partest --debug test/files/run/t7398.scala
Skipping java8-specific test under java version 1.7.0_21
testing: [...]/files/run/t7398.scala [ OK ]
All of 1 tests were successful (elapsed time: 00:00:04)
% test/partest --debug test/files/run/t7398.scala
Attempting java8-specific test under java version 1.8.0-ea
testing: [...]/files/run/t7398.scala [ OK ]
All of 1 tests were successful (elapsed time: 00:00:13)
Diffstat (limited to 'bincompat-forward.whitelist.conf')
-rw-r--r-- | bincompat-forward.whitelist.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bincompat-forward.whitelist.conf b/bincompat-forward.whitelist.conf index 82f094bed7..88eabd4f8c 100644 --- a/bincompat-forward.whitelist.conf +++ b/bincompat-forward.whitelist.conf @@ -426,6 +426,10 @@ filter { { matchName="scala.reflect.internal.TreeInfo.effectivePatternArity" problemName=MissingMethodProblem + }, + { + matchName="scala.reflect.internal.ModifierFlags.DEFAULTMETHOD" + problemName=MissingMethodProblem } ] } |