You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That can be addressed in a manner similar to scala.tools.partest.CompilerTest :
emit classfiles as usual
have a DirectTest subclass parse each classfile using ASM's Tree API
have an "acceptor" class provided as part of the test that inspects the trees parsed above.
The ASM Tree API does not support a "bytecode query language" nor a DSL to that effect, but still drilling into details of interest should be easier to maintain than verbatim javap output.
There is no subclass of
scala.tools.partest.DirectTest
to compare javap for output classfiles (as generated by-Ygen-javap
).That's necessary to test, for example, whether certain JVM attributes are being emitted (motivation: #5983)
In case javap is not available on the machine running
partest
, ASM'sscala.tools.asm.util.Textifier
could be used instead (via GenASM).The text was updated successfully, but these errors were encountered: