From 807567230852bcadb98a91322bd348aae764801f Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 11 May 2012 10:25:34 -0700 Subject: Recognize java enums as constants from source. Fixed up one of the mismatches between how java source is modeled and how java bytecode is modeled. We should get the rest of them too. Closes SI-2764. --- test/files/pos/t2764/Ann.java | 5 +++++ test/files/pos/t2764/Enum.java | 5 +++++ test/files/pos/t2764/Use.scala | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 test/files/pos/t2764/Ann.java create mode 100644 test/files/pos/t2764/Enum.java create mode 100644 test/files/pos/t2764/Use.scala (limited to 'test/files/pos/t2764') diff --git a/test/files/pos/t2764/Ann.java b/test/files/pos/t2764/Ann.java new file mode 100644 index 0000000000..184fc6e864 --- /dev/null +++ b/test/files/pos/t2764/Ann.java @@ -0,0 +1,5 @@ +package bippy; + +public @interface Ann { + Enum value(); +} diff --git a/test/files/pos/t2764/Enum.java b/test/files/pos/t2764/Enum.java new file mode 100644 index 0000000000..fe07559535 --- /dev/null +++ b/test/files/pos/t2764/Enum.java @@ -0,0 +1,5 @@ +package bippy; + +public enum Enum { + VALUE; +} diff --git a/test/files/pos/t2764/Use.scala b/test/files/pos/t2764/Use.scala new file mode 100644 index 0000000000..8cf8102709 --- /dev/null +++ b/test/files/pos/t2764/Use.scala @@ -0,0 +1,6 @@ +package bippy + +class Use { + @Ann(Enum.VALUE) + def foo {} +} -- cgit v1.2.3