IDEA 14. Decompile my own classes(from output directory)

Seagull picture Seagull · Feb 9, 2015 · Viewed 8k times · Source

I want to look at the code generated from my own sources but it seems that IDEA doesn't decompile them using new fernflower plugin using IntelliJ API Decompiler instead.

At least I have header comment

// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available

and methods like that: public void update() { /* compiled code */ }

At the same time, in external library(for example JDK), i see normal header and decompiled code.

// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)

I can make decompiler works, if I compile code to jar and add it to some module, but it's doesn't look like a normal solution.

Can I make IDEA decompile any class file using fernflower?

EDIT: While opening file I get an exception in IDEA log file. See snippet.

Answer

RoberMP picture RoberMP · Jun 8, 2016

In my case the problem was that I had installed "Java Decompiler IntelliJ Plugin". Unistall it makes the job.