Skip to content

Commit

Permalink
Expand diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed Dec 12, 2024
1 parent 6817421 commit edfa7cb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ public AnnotatedTypeMirror visitDeclared_Intersection(
public AnnotatedTypeMirror visitDeclared_Primitive(
AnnotatedDeclaredType type, AnnotatedPrimitiveType superType, Void p) {
if (!TypesUtils.isBoxedPrimitive(type.getUnderlyingType())) {
throw new BugInCF("AsSuperVisitor Declared_Primitive: type is not a boxed primitive.");
throw new BugInCF(
"AsSuperVisitor Declared_Primitive: type is not a boxed primitive: %s %s",
type, superType);
}
AnnotatedTypeMirror unboxedType = atypeFactory.getUnboxedType(type);
return copyPrimaryAnnos(unboxedType, superType);
Expand Down

0 comments on commit edfa7cb

Please sign in to comment.