From 446e75cccea415c9193ac090d1de9d8a4937011d Mon Sep 17 00:00:00 2001 From: Markus Schmidt Date: Mon, 19 Aug 2024 10:09:36 +0200 Subject: [PATCH] change exception type --- .../main/java/sootup/java/core/interceptors/CopyPropagator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sootup.java.core/src/main/java/sootup/java/core/interceptors/CopyPropagator.java b/sootup.java.core/src/main/java/sootup/java/core/interceptors/CopyPropagator.java index 1a5ba25c123..ecc203ba222 100644 --- a/sootup.java.core/src/main/java/sootup/java/core/interceptors/CopyPropagator.java +++ b/sootup.java.core/src/main/java/sootup/java/core/interceptors/CopyPropagator.java @@ -96,7 +96,7 @@ else if (rhs instanceof Local && !rhs.equivTo(use)) { if (use != m) { Integer defCount = m.getDefs(stmtGraph.getStmts()).size(); if (defCount == 0) { - throw new RuntimeException("Variable " + m + " used without definition!"); + throw new IllegalStateException("Local `" + m + "' is used without a definition!"); } else if (defCount == 1) { newStmt = replaceUse(stmtGraph, newStmt, use, rhs); continue;