summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-03-06 14:12:56 -0800
committerEugene Burmako <xeno.by@gmail.com>2014-03-07 20:56:18 +0100
commit60aa5771ea92f91ed34778f90c04113e226d09ca (patch)
tree460f5f6ce0d107c8f90e12a4c720c9b9ed437fc8 /test/files/pos
parent2dddb03b267770afcd0249ad700e55d53019e637 (diff)
downloadscala-60aa5771ea92f91ed34778f90c04113e226d09ca.tar.gz
scala-60aa5771ea92f91ed34778f90c04113e226d09ca.tar.bz2
scala-60aa5771ea92f91ed34778f90c04113e226d09ca.zip
SI-8367 revert SI-8192's change to primaryConstructor when isJavaDefined
this is some weird stuff
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t8367.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t8367.scala b/test/files/pos/t8367.scala
new file mode 100644
index 0000000000..cae2415405
--- /dev/null
+++ b/test/files/pos/t8367.scala
@@ -0,0 +1,11 @@
+package java.lang
+
+// SI-8367 shows something is wrong with primaryConstructor and it was made worse with the fix for SI-8192
+// perhaps primaryConstructor should not return NoSymbol when isJavaDefined
+// or, perhaps isJavaDefined should be refined (the package definition above is pretty sneaky)
+// also, why does this only happen for a (scala-defined!) class with this special name?
+// (there are a couple of others: CloneNotSupportedException,InterruptedException)
+class Throwable
+
+// class CloneNotSupportedException
+// class InterruptedException \ No newline at end of file