From 60aa5771ea92f91ed34778f90c04113e226d09ca Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Thu, 6 Mar 2014 14:12:56 -0800 Subject: SI-8367 revert SI-8192's change to primaryConstructor when isJavaDefined this is some weird stuff --- test/files/pos/t8367.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/pos/t8367.scala (limited to 'test/files/pos') 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 -- cgit v1.2.3