From e2b7b044c533e295309dc8ba9fcdb6d8dbc52fd4 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Wed, 18 Jun 2008 16:58:56 +0000 Subject: Fixed #1054. --- src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index 06106c6d03..5252699198 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -1484,10 +1484,12 @@ abstract class GenJVM extends SubComponent { } /** Calls to methods in 'sym' need invokeinterface? */ - def needsInterfaceCall(sym: Symbol): Boolean = + def needsInterfaceCall(sym: Symbol): Boolean = { + sym.info // needed so that the type is up to date (erasure may add lateINTERFACE to traits) sym.hasFlag(Flags.INTERFACE) || (sym.hasFlag(Flags.JAVA) && sym.isNonBottomSubClass(definitions.ClassfileAnnotationClass)) + } def javaType(t: TypeKind): JType = (t: @unchecked) match { -- cgit v1.2.3