diff --git a/2b99a244b592445962cdd15ca33f80449f9aa2ea.patch b/2b99a244b592445962cdd15ca33f80449f9aa2ea.patch new file mode 100644 index 0000000..1b258f8 --- /dev/null +++ b/2b99a244b592445962cdd15ca33f80449f9aa2ea.patch @@ -0,0 +1,60 @@ +commit 2b99a244b592445962cdd15ca33f80449f9aa2ea +Author: Jiri +Date: Tue Jul 11 10:16:41 2023 +0200 + + isTreatAllTabsAsOneBatch returns false in jrd mode and is not shown + +diff --git a/runtime-decompiler/src/main/java/org/jrd/frontend/frame/main/decompilerview/TextWithControls.java b/runtime-decompiler/src/main/java/org/jrd/frontend/frame/main/decompilerview/TextWithControls.java +index 3e87e6d..a8db71a 100644 +--- a/runtime-decompiler/src/main/java/org/jrd/frontend/frame/main/decompilerview/TextWithControls.java ++++ b/runtime-decompiler/src/main/java/org/jrd/frontend/frame/main/decompilerview/TextWithControls.java +@@ -574,18 +574,20 @@ public class TextWithControls extends JPanel + } + }); + advanced.add(setMethod); +- JCheckBox treatAllAsOne = new JCheckBox("Treat all tabs in this window as single batch"); +- Container parent = getParentWindow(); +- if (parent != null) { +- treatAllAsOne.addActionListener(new ActionListener() { +- @Override +- public void actionPerformed(ActionEvent actionEvent) { +- setTreatAllTabsAsOneBatch(treatAllAsOne.isSelected()); +- repaintMenu(menu); +- } +- }); +- treatAllAsOne.setSelected(isTreatAllTabsAsOneBatch()); +- advanced.add(treatAllAsOne); ++ if (getParentWindow()!=null) { ++ JCheckBox treatAllAsOne = new JCheckBox("Treat all tabs in this window as single batch"); ++ Container parent = getParentWindow(); ++ if (parent != null) { ++ treatAllAsOne.addActionListener(new ActionListener() { ++ @Override ++ public void actionPerformed(ActionEvent actionEvent) { ++ setTreatAllTabsAsOneBatch(treatAllAsOne.isSelected()); ++ repaintMenu(menu); ++ } ++ }); ++ treatAllAsOne.setSelected(isTreatAllTabsAsOneBatch()); ++ advanced.add(treatAllAsOne); ++ } + } + if (hasVm(classesAndMethodsProvider)) { + JCheckBox addToBoot = new JCheckBox( +@@ -908,10 +910,16 @@ public class TextWithControls extends JPanel + } + + private void setTreatAllTabsAsOneBatch(boolean selected) { ++ if (getParentWindow() == null) { ++ return ; ++ } + getParentWindow().setTreatAllTabsAsOneBatch(selected); + } + + private boolean isTreatAllTabsAsOneBatch() { ++ if (getParentWindow() == null) { ++ return false; ++ } + return getParentWindow().isTreatAllTabsAsOneBatch(); + } + diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 40262ac..cc1d020 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 7.3 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3 URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/pmikova/%{name}/archive/%{name}-%{version}.tar.gz @@ -22,6 +22,7 @@ Patch61: systemJcoder7.patch Patch62: systemJcoderG.patch Patch63: systemJcoderG7.patch Patch7: removeMultilineSpotbugs.patch +Patch8: 2b99a244b592445962cdd15ca33f80449f9aa2ea.patch BuildArch: noarch ExclusiveArch: %{java_arches} noarch @@ -123,6 +124,7 @@ This package provides bindings and requirements to asmtools7 disassembler and as %patch62 -p0 %patch63 -p0 %patch7 -p1 +%patch8 -p1 %build pushd runtime-decompiler @@ -228,6 +230,9 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json %license LICENSE %changelog +* Tue Jul 11 2023 Fedora Release Engineering - 7.3-2 +- added 2b99a244b592445962cdd15ca33f80449f9aa2ea.patch to fix compiler issue in jrd window + * Fri Jun 30 2023 Fedora Release Engineering - 7.3-1 - moved to 7.3 - https://github.com/pmikova/java-runtime-decompiler/releases/tag/java-runtime-decompiler-7.3