diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-07-12 19:23:26 +1000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2015-07-23 15:02:25 +0200 |
commit | 6177cb44812b92b4059ec621a34cc26ddbe532c1 (patch) | |
tree | 5c2e9e9b8231088504a3fbcb7704a4325b837e8e /test/files/pos | |
parent | a1d471f7ba93f5a2e3a66a77596a41f2677ca9ee (diff) | |
download | scala-6177cb44812b92b4059ec621a34cc26ddbe532c1.tar.gz scala-6177cb44812b92b4059ec621a34cc26ddbe532c1.tar.bz2 scala-6177cb44812b92b4059ec621a34cc26ddbe532c1.zip |
[backport] SI-9393 Temporarily disable two assertions in GenBCode
These cause a crash in the build of Play. We should try to bring
these back once we have suitable annotation awareness. Perhaps
they should only be `devWarning`-s, though.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t9393/Named.java | 3 | ||||
-rw-r--r-- | test/files/pos/t9393/NamedImpl.java | 15 | ||||
-rw-r--r-- | test/files/pos/t9393/test.scala | 3 |
3 files changed, 21 insertions, 0 deletions
diff --git a/test/files/pos/t9393/Named.java b/test/files/pos/t9393/Named.java new file mode 100644 index 0000000000..144ddbf26e --- /dev/null +++ b/test/files/pos/t9393/Named.java @@ -0,0 +1,3 @@ +package bug; + +public @interface Named {} diff --git a/test/files/pos/t9393/NamedImpl.java b/test/files/pos/t9393/NamedImpl.java new file mode 100644 index 0000000000..7918739c2b --- /dev/null +++ b/test/files/pos/t9393/NamedImpl.java @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com> + */ +package bug; + +import bug.Named; +import java.io.Serializable; +import java.lang.annotation.Annotation; + +public class NamedImpl implements Named { + + public Class<? extends Annotation> annotationType() { + return null; + } +} diff --git a/test/files/pos/t9393/test.scala b/test/files/pos/t9393/test.scala new file mode 100644 index 0000000000..4df0476c98 --- /dev/null +++ b/test/files/pos/t9393/test.scala @@ -0,0 +1,3 @@ +class C { + new bug.NamedImpl +} |