summaryrefslogtreecommitdiff
path: root/src/partest/scala/tools/partest/AsmNode.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-08-15 15:02:18 -0700
committerPaul Phillips <paulp@improving.org>2013-08-17 08:21:43 -0700
commitde1d8c3a89e95e1b934da05453f8e1fed925c838 (patch)
tree50e402ec0bd03e7d7c2de97e2e569aef3b8a0205 /src/partest/scala/tools/partest/AsmNode.scala
parent4334f4c4a47f7e2dc0c382ada7d1a683bdfbf215 (diff)
downloadscala-de1d8c3a89e95e1b934da05453f8e1fed925c838.tar.gz
scala-de1d8c3a89e95e1b934da05453f8e1fed925c838.tar.bz2
scala-de1d8c3a89e95e1b934da05453f8e1fed925c838.zip
Expand the understanding of bytecode tests.
The new method is the same as sameMethodAndFieldSignatures, but ignores generic signatures. This allows for testing methods which receive the same descriptor but differing generic signatures. In particular, this happens with value classes, which get a generic signature where a method written in terms of the underlying values does not.
Diffstat (limited to 'src/partest/scala/tools/partest/AsmNode.scala')
-rw-r--r--src/partest/scala/tools/partest/AsmNode.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/partest/scala/tools/partest/AsmNode.scala b/src/partest/scala/tools/partest/AsmNode.scala
index d181436676..e6a91498d1 100644
--- a/src/partest/scala/tools/partest/AsmNode.scala
+++ b/src/partest/scala/tools/partest/AsmNode.scala
@@ -16,10 +16,11 @@ sealed trait AsmNode[+T] {
def visibleAnnotations: List[AnnotationNode]
def invisibleAnnotations: List[AnnotationNode]
def characteristics = f"$name%15s $desc%-30s$accessString$sigString"
+ def erasedCharacteristics = f"$name%15s $desc%-30s$accessString"
- private def accessString = if (access == 0) "" else " " + Modifier.toString(access)
- private def sigString = if (signature == null) "" else " " + signature
- override def toString = characteristics
+ private def accessString = if (access == 0) "" else " " + Modifier.toString(access)
+ private def sigString = if (signature == null) "" else " " + signature
+ override def toString = characteristics
}
object AsmNode {