From 8f020bb6632d5d68e169f8caa7d9cbc1bc819d35 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 7 May 2015 11:32:35 +0200 Subject: Fix #536 - only load member classes of classes that are currently compiled. It seems wasteful to load the member classes even of classes that are not currently compiled. It also makes us vulnerable to any misinterpretation of Java file formats. In th particular case of #536, we parsed a class an anonymous Collection$1 which was referring to the type parameter of its enclosing class, but was not diagnosed as an inner class of the enclosing class. --- tests/pos/i536.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/pos/i536.scala (limited to 'tests') diff --git a/tests/pos/i536.scala b/tests/pos/i536.scala new file mode 100644 index 000000000..db9fb9b38 --- /dev/null +++ b/tests/pos/i536.scala @@ -0,0 +1,3 @@ +object Max { + java.util.Collections.max(null) +} -- cgit v1.2.3