From bd319586ed4110b972bad9220cd9142f290eb859 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 28 Mar 2011 21:44:33 +0000 Subject: Looks like another java5/java6 difference gets ... Looks like another java5/java6 difference gets me on a test. At least this time I was looking for that. No review. --- test/files/pos/javaReadsSigs/fromjava.java | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'test/files') diff --git a/test/files/pos/javaReadsSigs/fromjava.java b/test/files/pos/javaReadsSigs/fromjava.java index b1ffc34c11..745fb84efd 100644 --- a/test/files/pos/javaReadsSigs/fromjava.java +++ b/test/files/pos/javaReadsSigs/fromjava.java @@ -58,10 +58,18 @@ public class fromjava { public static Object sum(Traversable x) { return x.sum(Contra.intNum); } + // Looks like sum as given below fails under java5, so disabled. + // + // [partest] testing: [...]/files/pos/javaReadsSigs [FAILED] + // [partest] files/pos/javaReadsSigs/fromjava.java:62: name clash: sum(scala.collection.Traversable) and sum(scala.collection.Traversable) have the same erasure + // [partest] public static B sum(Traversable x) { + // [partest] ^ + // + // // can't make this work with an actual CanBuildFrom: see #4389. - public static B sum(Traversable x) { - // have to cast it unfortunately: map in TraversableLike returns - // "That" and such types seem to be signature poison. - return ((Traversable)x.map(f1, null)).head(); - } + // public static B sum(Traversable x) { + // // have to cast it unfortunately: map in TraversableLike returns + // // "That" and such types seem to be signature poison. + // return ((Traversable)x.map(f1, null)).head(); + // } } \ No newline at end of file -- cgit v1.2.3