Jad/JadClipse for Scala?

1.3k views Asked by At

Is there something equivalent or similar to Jad/JadClipse for Scala? It would be nice to be able to view the source for Lift from within Eclipse via "Open Declaration".

2

There are 2 answers

1
Viktor Hedefalk On BEST ANSWER

I don't know of any decompiler, but I think what you want to do just attach the source to the jar containing classes.

Just right-click on the lift-jar in the package explorer and choose properties. There you can specify a source location. I believe that an attached source location will override an installed jad-plugin.

If you're using maven and m2eclipse, you can simply right-click the lift-dep. -> Maven -> download sources. That will download the -sources.jar and automatically attach.

0
VonC On

I man not sure you could get back the exact scala source, but at least you could try and see what the nsc bytecode looks like in Java.

This thread mentions (not tested myself) the Soot Eclipse plugin.

So I might settle on the Eclipse plugin for Soot, which can for example display bytecode using the Grimp notation (well, the following screenshot shows Jimple, but conveys the idea):

enter image description here