Storyyeller / Krakatau

Java decompiler, assembler, and disassembler
GNU General Public License v3.0
1.95k stars 220 forks source link

Lambda assembling #47

Closed lisu188 closed 9 years ago

lisu188 commented 9 years ago

When i disassembled and assembled again following class:

public class Main { private static final List ARR = Arrays.asList("1", "2", "3");

public static void main(String[] args) {
    ARR.forEach(x -> System.out.println(x));
}

}

i got an exception:

Krakatau\constant_pool.py", line 206, in bytes t = name2Type[name] KeyError: 'Methodtype'

and when i "iffed" that place to change key to 'MethodType' it has successfully compiled

Storyyeller commented 9 years ago

Well Java 8 isn't officially supported yet (mainly because I have very little time to work on it nowadays and my main priority is improving the decompilation quality for existing apps). But if the change required is that simple, I'll go ahead and look into it.

Storyyeller commented 9 years ago

Should be fixed now.