From d33a20f0677ca77490bfc40486f0f2c72f14a21d Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Fri, 20 Jul 2007 09:03:20 +0000 Subject: classOf[Integer] now properly resolves to class... classOf[Integer] now properly resolves to classOf[java.lang.Integer] because Predef.Integer (and Character) are @deprecated, had to update check files to include these warnings --- test/files/jvm5/annotations.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/files/jvm5/annotations.scala') diff --git a/test/files/jvm5/annotations.scala b/test/files/jvm5/annotations.scala index addf2bb07f..4a516a16c4 100644 --- a/test/files/jvm5/annotations.scala +++ b/test/files/jvm5/annotations.scala @@ -125,7 +125,8 @@ object Test4 { object Test5 { import scala.reflect.BeanProperty - import java.lang.Integer +// no need to import java.lang.Integer, Predef.Integer is simply an alias for it +// classOf[Integer] now properly resolves to classOf[java.lang.Integer] class Count { // we use "Integer" instead of "Int" because of Java reflection @BeanProperty -- cgit v1.2.3