diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-02-11 13:02:40 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-02-11 13:02:40 -0800 |
commit | b87e9b39d9ee606aab5d86f84ca94df416451e65 (patch) | |
tree | 34dbc0c8054303eb92a6a6fea2d48b885f8c5ac4 /test/files/run/t6548 | |
parent | db5919a7d3b18be94e79899c2f7e33c535e15a27 (diff) | |
parent | 85b63b81d5951a78547641e3feab0886f6013ea1 (diff) | |
download | scala-b87e9b39d9ee606aab5d86f84ca94df416451e65.tar.gz scala-b87e9b39d9ee606aab5d86f84ca94df416451e65.tar.bz2 scala-b87e9b39d9ee606aab5d86f84ca94df416451e65.zip |
Merge pull request #2103 from adriaanm/bin-compatv2.10.1-RC1
Forward and backward binary compatibility between 2.10.0 and 2.10.1-RC1
Diffstat (limited to 'test/files/run/t6548')
-rw-r--r-- | test/files/run/t6548/JavaAnnotationWithNestedEnum_1.java | 17 | ||||
-rw-r--r-- | test/files/run/t6548/Test_2.scala | 12 |
2 files changed, 0 insertions, 29 deletions
diff --git a/test/files/run/t6548/JavaAnnotationWithNestedEnum_1.java b/test/files/run/t6548/JavaAnnotationWithNestedEnum_1.java deleted file mode 100644 index 32004de537..0000000000 --- a/test/files/run/t6548/JavaAnnotationWithNestedEnum_1.java +++ /dev/null @@ -1,17 +0,0 @@ -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, - ElementType.TYPE, ElementType.PARAMETER}) -@Retention(RetentionPolicy.RUNTIME) -public @interface JavaAnnotationWithNestedEnum_1 -{ - public Value value() default Value.VALUE; - - public enum Value - { - VALUE; - } -}
\ No newline at end of file diff --git a/test/files/run/t6548/Test_2.scala b/test/files/run/t6548/Test_2.scala deleted file mode 100644 index 6e4f6ba92a..0000000000 --- a/test/files/run/t6548/Test_2.scala +++ /dev/null @@ -1,12 +0,0 @@ -import scala.reflect.runtime.universe._ -import scala.reflect.runtime.{currentMirror => cm} - -class Bean { - @JavaAnnotationWithNestedEnum_1(JavaAnnotationWithNestedEnum_1.Value.VALUE) - def value = 1 -} - -object Test extends App { - println(cm.staticClass("Bean").isCaseClass) - println(typeOf[Bean].declaration(newTermName("value")).annotations) -} |