From db9f86dfdd91eacdced3f3d93e63193d45fc40f6 Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Sun, 11 Sep 2016 11:16:32 -0700 Subject: [PATCH] Make getRegisterType throw AnalysisException instead of ExceptionWithContext This will cause MethodAnalyzer to print more information when this occurs --- dexlib2/src/main/java/org/jf/dexlib2/analysis/RegisterType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dexlib2/src/main/java/org/jf/dexlib2/analysis/RegisterType.java b/dexlib2/src/main/java/org/jf/dexlib2/analysis/RegisterType.java index ba782fe6..75478ca6 100644 --- a/dexlib2/src/main/java/org/jf/dexlib2/analysis/RegisterType.java +++ b/dexlib2/src/main/java/org/jf/dexlib2/analysis/RegisterType.java @@ -235,7 +235,7 @@ public class RegisterType { case '[': return getRegisterType(REFERENCE, classPath.getClass(type)); default: - throw new ExceptionWithContext("Invalid type: " + type); + throw new AnalysisException("Invalid type: " + type); } }