diff --git a/framework/src/main/java/org/checkerframework/framework/util/AnnotatedTypes.java b/framework/src/main/java/org/checkerframework/framework/util/AnnotatedTypes.java index c756feffb1e..4bdbe8c2121 100644 --- a/framework/src/main/java/org/checkerframework/framework/util/AnnotatedTypes.java +++ b/framework/src/main/java/org/checkerframework/framework/util/AnnotatedTypes.java @@ -251,8 +251,8 @@ private static AnnotatedTypeMirror asOuterSuper( } if (enclosingType == null) { // TODO: work around a failure in guava that happens without this hack. - // throw new BugInCF("Enclosing type not found %s %s", dt, superType); - return superType; + throw new BugInCF("Enclosing type not found %s %s", dt, superType); + // return superType; } return asSuper(atypeFactory, dt, superType); }