From 98081c7371d88600bb0a98d08d5db4416aa2f3bd Mon Sep 17 00:00:00 2001 From: CoolMineman <62723322+CoolMineman@users.noreply.github.com> Date: Wed, 27 Oct 2021 00:04:36 -0500 Subject: [PATCH] jls moment --- brachyura/pom.xml | 2 +- .../coolcrabs/brachyura/decompiler/cfr/CfrDecompiler.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/brachyura/pom.xml b/brachyura/pom.xml index 70ea5c9f..393c200a 100644 --- a/brachyura/pom.xml +++ b/brachyura/pom.xml @@ -5,7 +5,7 @@ io.github.coolcrabs brachyura - 0.10 + 0.11 1.8 diff --git a/brachyura/src/main/java/io/github/coolcrabs/brachyura/decompiler/cfr/CfrDecompiler.java b/brachyura/src/main/java/io/github/coolcrabs/brachyura/decompiler/cfr/CfrDecompiler.java index 29fa1d59..8fe140f0 100644 --- a/brachyura/src/main/java/io/github/coolcrabs/brachyura/decompiler/cfr/CfrDecompiler.java +++ b/brachyura/src/main/java/io/github/coolcrabs/brachyura/decompiler/cfr/CfrDecompiler.java @@ -22,9 +22,15 @@ public class CfrDecompiler implements BrachyuraDecompiler { private static final Map CFR_OPTIONS = new HashMap<>(); + private static final String VERSION; static { CFR_OPTIONS.put("trackbytecodeloc", "true"); + try { + VERSION = (String) CfrVersionInfo.class.getField("VERSION").get(null); // Java moment + } catch (Exception t) { + throw Util.sneak(t); + } } private final int threadCount; @@ -80,7 +86,7 @@ public String getName() { @Override public String getVersion() { - return CfrVersionInfo.VERSION; + return VERSION; } @Override