Skip to content

Commit

Permalink
Update CFR to 1.50
Browse files Browse the repository at this point in the history
  • Loading branch information
apkreader committed Oct 13, 2020
1 parent cb6eac6 commit 5dc8aca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
Binary file removed lib/cfr_0_146.jar
Binary file not shown.
18 changes: 1 addition & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,6 @@
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-cfr</id>
<phase>clean</phase>
<configuration>
<file>${basedir}/lib/cfr_0_146.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>org.benf</groupId>
<artifactId>cfr</artifactId>
<version>1.4.6</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-attach</id>
<phase>clean</phase>
Expand Down Expand Up @@ -230,7 +214,7 @@
<dependency>
<groupId>org.benf</groupId>
<artifactId>cfr</artifactId>
<version>0.146</version>
<version>0.150</version>
</dependency>
<dependency>
<groupId>com.sun</groupId>
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/me/grax/jbytemod/decompiler/CFRDecompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.benf.cfr.reader.entities.constantpool.ConstantPool;
import org.benf.cfr.reader.state.ClassFileSourceImpl;
import org.benf.cfr.reader.state.DCCommonState;
import org.benf.cfr.reader.util.AnalysisType;
import org.benf.cfr.reader.util.bytestream.BaseByteData;
import org.benf.cfr.reader.util.getopt.OptionsImpl;
import org.benf.cfr.reader.util.output.ToStringDumper;
Expand Down Expand Up @@ -106,7 +107,6 @@ public String decompile(byte[] b, MethodNode mn) {
}
ClassFileSource2 cfs = new ClassFileSource2() {

@Override
public JarContent addJarContent(String s) {
return null;
}
Expand All @@ -133,6 +133,12 @@ public Pair<byte[], String> getClassFileContent(String path) throws IOException
public Collection<String> addJar(String arg0) {
throw new RuntimeException();
}

@Override
public JarContent addJarContent(String jarPath, AnalysisType analysisType) {
// TODO Auto-generated method stub
return null;
}
};
PluginRunner runner = new PluginRunner(ops, cfs);
if (mn != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/me/grax/jbytemod/decompiler/Decompilers.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.grax.jbytemod.decompiler;

public enum Decompilers {
CFR("CFR", "1.46"), PROCYON("Procyon", "0.5.36"), FERNFLOWER("Fernflower", ""), KRAKATAU("Krakatau", "502");
CFR("CFR", "1.50"), PROCYON("Procyon", "0.5.36"), FERNFLOWER("Fernflower", ""), KRAKATAU("Krakatau", "502");
private String version;
private String name;

Expand Down

0 comments on commit 5dc8aca

Please sign in to comment.