From 7552739730bab440009241c0d645ab8c6b8a042c Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Mon, 15 Dec 2014 19:19:19 +0100 Subject: SI-9044 Fix order of interfaces in classfiles It was reversed since ced3ca8ae1. The reason is that the backend used `mixinClasses` to obtain the parents of a class, which returns them in linearization order. `mixinClasses` als returns all ancestors (not only direct parents), which means more work for `minimizeInterfaces`. This was introduced in cd62f52 for unclear reasons. So we switch back to using `parents`. --- test/files/jvm/t9044.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/jvm/t9044.scala (limited to 'test/files') diff --git a/test/files/jvm/t9044.scala b/test/files/jvm/t9044.scala new file mode 100644 index 0000000000..b1073325e8 --- /dev/null +++ b/test/files/jvm/t9044.scala @@ -0,0 +1,6 @@ +trait A +trait B +object Test extends A with B with App { + val is = Test.getClass.getInterfaces.mkString(", ") + assert(is == "interface A, interface B, interface scala.App", is) +} -- cgit v1.2.3