Ghidra is a software reverse engineering (SRE) framework
Test fixes
dragonmacher3c9dbf541490
diff --git a/Ghidra/Framework/Gui/data/gui.palette.theme.properties b/Ghidra/Framework/Gui/data/gui.palette.theme.propertiesindex 82131a7419..d2aee5691f 100644--- a/Ghidra/Framework/Gui/data/gui.palette.theme.properties+++ b/Ghidra/Framework/Gui/data/gui.palette.theme.properties@@ -110,7 +110,7 @@ color.palette.saddlebrown = burlywood // not sure; can changecolor.palette.silver = dimgray // not sure; this may need to be darkercolor.palette.tan = #635542 // less saturated tancolor.palette.teal = mediumseagreen-color.palette.yellow = mocassin+color.palette.yellow = moccasin// non-standardcolor.palette.lightcornflowerblue = cornflowerbluediff --git a/Ghidra/Framework/Gui/src/main/java/generic/theme/ThemeManager.java b/Ghidra/Framework/Gui/src/main/java/generic/theme/ThemeManager.javaindex 9fb06792ad..72810bb0bc 100644--- a/Ghidra/Framework/Gui/src/main/java/generic/theme/ThemeManager.java+++ b/Ghidra/Framework/Gui/src/main/java/generic/theme/ThemeManager.java@@ -570,7 +570,7 @@ public abstract class ThemeManager {}protected void error(String message) {- Throwable t = ReflectionUtilities.createThrowableWithStackOlderThan(getClass());+ Throwable t = ReflectionUtilities.createThrowableWithStackOlderThan(ThemeManager.class);StackTraceElement[] trace = t.getStackTrace();StackTraceElement[] filtered = ReflectionUtilities.filterStackTrace(trace, "java.","theme.Gui", "theme.ThemeManager", "theme.GColor");diff --git a/Ghidra/Framework/Utility/src/main/java/utilities/util/reflection/ReflectionUtilities.java b/Ghidra/Framework/Utility/src/main/java/utilities/util/reflection/ReflectionUtilities.javaindex 1f427274cc..c40990b929 100644--- a/Ghidra/Framework/Utility/src/main/java/utilities/util/reflection/ReflectionUtilities.java+++ b/Ghidra/Framework/Utility/src/main/java/utilities/util/reflection/ReflectionUtilities.java@@ -21,7 +21,7 @@ import java.util.*;import java.util.Map.Entry;import java.util.stream.Collectors;-import ghidra.util.exception.AssertException;+import ghidra.util.Msg;public class ReflectionUtilities {@@ -240,13 +240,15 @@ public class ReflectionUtilities {}if (lastIgnoreIndex == -1) {- throw new AssertException("Did not find the following classes in the call stack: " +- Arrays.toString(classes));+ Msg.error(ReflectionUtilities.class,+ "Change call to ReflectionUtils. Did not find the " ++ "following classes in the call stack: " + Arrays.toString(classes));}if (lastIgnoreIndex == trace.length - 1) {- throw new AssertException(- "Call stack only contains the classes to ignore: " + Arrays.toString(classes));+ Msg.error(ReflectionUtilities.class,+ "Change call to ReflectionUtils. Call stack only contains the classes to ignore: " ++ Arrays.toString(classes));}int startIndex = lastIgnoreIndex + 1;