class ScalaGeneric { var s: java.util.Set[String] = _ } trait ScalaGeneric2Trait { var s: java.util.Set[String] = _ } class ScalaGeneric2 extends ScalaGeneric2Trait object Test extends App { println(classOf[ScalaGeneric].getDeclaredField("s").toGenericString) // java.util.Set ScalaGeneric.s println(classOf[ScalaGeneric2].getDeclaredField("s").toGenericString) // After r24319 this comment was: // java.util.Set ScalaGeneric2.s -- no signature should be found because it was mixed in. // // Having reverted that with this commit, I note the original comment since // the original signature is also back. // java.util.Set ScalaGeneric2.s -- should be same as above }