score:1

Accepted answer

both the following work for me with java 1.7

  • :javap in the scala 2.11 repl
  • the javap tool of the java 1.7 jdk

now, to integrate that with sbt or eclipse, you could make use of the jdk's javap in the same way as any other executable compatible with the command-line.

edit running external commands is not cross-platform of course, but in the case of sbt "scripts" you can refer to:

score:1

a couple of years ago i put together a simple sbt plugin that dumps the output of the asm textifier to disk for a whole project, which you might find more convenient than javap.

https://github.com/hcoles/sbt-bytecode


Related Query

More Query from same tag