You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: SourceChecker.typeProcess: unexpected Throwable (ClassCastException) while processing Test.java; message: class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType cannot be cast to class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType (org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType and org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType are in unnamed module of loader java.net.URLClassLoader @382db087)
; The Checker Framework crashed. Please report the crash. Version: Checker Framework 3.48.2-SNAPSHOT, branch master, 2024-10-20, commit b7d9092, dirty=true.
Compilation unit: Test.java
Last visited tree at line 7 column 9:
B<? super A<Number>> x = new B<A<Number>>();
Exception: java.lang.ClassCastException: class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType cannot be cast to class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType (org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType and org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType are in unnamed module of loader java.net.URLClassLoader @382db087); java.lang.ClassCastException: class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType cannot be cast to class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType (org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType and org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType are in unnamed module of loader java.net.URLClassLoader @382db087)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.visitDeclared(DoubleAnnotatedTypeScanner.java:112)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.visitDeclared(DoubleAnnotatedTypeScanner.java:28)
at org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType.accept(AnnotatedTypeMirror.java:1051)
at org.checkerframework.framework.type.visitor.AnnotatedTypeScanner.scan(AnnotatedTypeScanner.java:206)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.scan(DoubleAnnotatedTypeScanner.java:106)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.scan(DoubleAnnotatedTypeScanner.java:78)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.visitDeclared(DoubleAnnotatedTypeScanner.java:112)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.visitDeclared(DoubleAnnotatedTypeScanner.java:28)
at org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType.accept(AnnotatedTypeMirror.java:1051)
at org.checkerframework.framework.type.visitor.AnnotatedTypeScanner.scan(AnnotatedTypeScanner.java:206)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.scan(DoubleAnnotatedTypeScanner.java:106)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.scan(DoubleAnnotatedTypeScanner.java:28)
at org.checkerframework.framework.type.visitor.AnnotatedTypeScanner.visit(AnnotatedTypeScanner.java:194)
at org.checkerframework.framework.type.AnnotatedTypeFactory.replaceAnnotations(AnnotatedTypeFactory.java:4482)
at org.checkerframework.framework.type.AnnotatedTypeFactory.applyCaptureConversion(AnnotatedTypeFactory.java:5014)
at org.checkerframework.framework.type.AnnotatedTypeFactory.applyCaptureConversion(AnnotatedTypeFactory.java:4921)
at org.checkerframework.common.basetype.BaseTypeValidator.visitParameterizedType(BaseTypeValidator.java:557)
at org.checkerframework.common.basetype.BaseTypeValidator.visitDeclared(BaseTypeValidator.java:343)
at org.checkerframework.common.basetype.BaseTypeValidator.visitDeclared(BaseTypeValidator.java:60)
at org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType.accept(AnnotatedTypeMirror.java:1051)
at org.checkerframework.framework.type.visitor.AnnotatedTypeScanner.scan(AnnotatedTypeScanner.java:206)
at org.checkerframework.framework.type.visitor.AnnotatedTypeScanner.visit(AnnotatedTypeScanner.java:194)
at org.checkerframework.common.basetype.BaseTypeValidator.isValid(BaseTypeValidator.java:116)
at org.checkerframework.common.basetype.BaseTypeVisitor.validateType(BaseTypeVisitor.java:4840)
at org.checkerframework.common.basetype.BaseTypeVisitor.commonAssignmentCheck(BaseTypeVisitor.java:3016)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitVariable(BaseTypeVisitor.java:1608)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitVariable(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:974)
at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at org.checkerframework.framework.source.SourceVisitor.scan(SourceVisitor.java:92)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:408)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
at jdk.compiler/com.sun.source.util.TreeScanner.visitBlock(TreeScanner.java:248)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1032)
at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at org.checkerframework.framework.source.SourceVisitor.scan(SourceVisitor.java:92)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:408)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90)
at jdk.compiler/com.sun.source.util.TreeScanner.visitMethod(TreeScanner.java:206)
at org.checkerframework.framework.source.SourceVisitor.visitMethod(SourceVisitor.java:110)
at org.checkerframework.common.basetype.BaseTypeVisitor.processMethodTree(BaseTypeVisitor.java:1058)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitMethod(BaseTypeVisitor.java:954)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitMethod(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at org.checkerframework.framework.source.SourceVisitor.scan(SourceVisitor.java:92)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:408)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90)
at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
at jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
at org.checkerframework.framework.source.SourceVisitor.visitClass(SourceVisitor.java:98)
at org.checkerframework.common.basetype.BaseTypeVisitor.processClassTree(BaseTypeVisitor.java:603)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitClass(BaseTypeVisitor.java:558)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitClass(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56)
at org.checkerframework.framework.source.SourceVisitor.visit(SourceVisitor.java:86)
at org.checkerframework.framework.source.SourceChecker.typeProcess(SourceChecker.java:1347)
at org.checkerframework.framework.source.SourceChecker.typeProcess(SourceChecker.java:1268)
at org.checkerframework.javacutil.AbstractTypeProcessor$AttributionTaskListener.finished(AbstractTypeProcessor.java:188)
at jdk.compiler/com.sun.tools.javac.api.ClientCodeWrapper$WrappedTaskListener.finished(ClientCodeWrapper.java:828)
at jdk.compiler/com.sun.tools.javac.api.MultiTaskListener.finished(MultiTaskListener.java:132)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1418)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1375)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:973)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:311)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)
error: SourceChecker.typeProcess: unexpected Throwable (ClassCastException) while processing Test.java; message: class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType cannot be cast to class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType (org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType and org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType are in unnamed module of loader java.net.URLClassLoader @382db087)
; The Checker Framework crashed. Please report the crash. Version: Checker Framework 3.48.2-SNAPSHOT, branch master, 2024-10-20, commit b7d9092, dirty=true.
Compilation unit: Test.java
Last visited tree at line 7 column 9:
B<? super A<Number>> x = new B<A<Number>>();
Exception: java.lang.ClassCastException: class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType cannot be cast to class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType (org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType and org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType are in unnamed module of loader java.net.URLClassLoader @382db087); java.lang.ClassCastException: class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType cannot be cast to class org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType (org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType and org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType are in unnamed module of loader java.net.URLClassLoader @382db087)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.visitDeclared(DoubleAnnotatedTypeScanner.java:112)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.visitDeclared(DoubleAnnotatedTypeScanner.java:28)
at org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType.accept(AnnotatedTypeMirror.java:1051)
at org.checkerframework.framework.type.visitor.AnnotatedTypeScanner.scan(AnnotatedTypeScanner.java:206)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.scan(DoubleAnnotatedTypeScanner.java:106)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.scan(DoubleAnnotatedTypeScanner.java:78)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.visitDeclared(DoubleAnnotatedTypeScanner.java:112)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.visitDeclared(DoubleAnnotatedTypeScanner.java:28)
at org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType.accept(AnnotatedTypeMirror.java:1051)
at org.checkerframework.framework.type.visitor.AnnotatedTypeScanner.scan(AnnotatedTypeScanner.java:206)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.scan(DoubleAnnotatedTypeScanner.java:106)
at org.checkerframework.framework.type.visitor.DoubleAnnotatedTypeScanner.scan(DoubleAnnotatedTypeScanner.java:28)
at org.checkerframework.framework.type.visitor.AnnotatedTypeScanner.visit(AnnotatedTypeScanner.java:194)
at org.checkerframework.framework.type.AnnotatedTypeFactory.replaceAnnotations(AnnotatedTypeFactory.java:4482)
at org.checkerframework.framework.type.AnnotatedTypeFactory.applyCaptureConversion(AnnotatedTypeFactory.java:5014)
at org.checkerframework.framework.type.AnnotatedTypeFactory.applyCaptureConversion(AnnotatedTypeFactory.java:4921)
at org.checkerframework.common.basetype.BaseTypeValidator.visitParameterizedType(BaseTypeValidator.java:557)
at org.checkerframework.common.basetype.BaseTypeValidator.visitDeclared(BaseTypeValidator.java:343)
at org.checkerframework.common.basetype.BaseTypeValidator.visitDeclared(BaseTypeValidator.java:60)
at org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedDeclaredType.accept(AnnotatedTypeMirror.java:1051)
at org.checkerframework.framework.type.visitor.AnnotatedTypeScanner.scan(AnnotatedTypeScanner.java:206)
at org.checkerframework.framework.type.visitor.AnnotatedTypeScanner.visit(AnnotatedTypeScanner.java:194)
at org.checkerframework.common.basetype.BaseTypeValidator.isValid(BaseTypeValidator.java:116)
at org.checkerframework.common.basetype.BaseTypeVisitor.validateType(BaseTypeVisitor.java:4840)
at org.checkerframework.common.basetype.BaseTypeVisitor.commonAssignmentCheck(BaseTypeVisitor.java:3016)
at org.checkerframework.checker.initialization.InitializationVisitor.commonAssignmentCheck(InitializationVisitor.java:136)
at org.checkerframework.checker.nullness.NullnessVisitor.commonAssignmentCheck(NullnessVisitor.java:166)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitVariable(BaseTypeVisitor.java:1608)
at org.checkerframework.checker.initialization.InitializationVisitor.visitVariable(InitializationVisitor.java:158)
at org.checkerframework.checker.initialization.InitializationVisitor.visitVariable(InitializationVisitor.java:51)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:974)
at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at org.checkerframework.framework.source.SourceVisitor.scan(SourceVisitor.java:92)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:408)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
at jdk.compiler/com.sun.source.util.TreeScanner.visitBlock(TreeScanner.java:248)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1032)
at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at org.checkerframework.framework.source.SourceVisitor.scan(SourceVisitor.java:92)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:408)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90)
at jdk.compiler/com.sun.source.util.TreeScanner.visitMethod(TreeScanner.java:206)
at org.checkerframework.framework.source.SourceVisitor.visitMethod(SourceVisitor.java:110)
at org.checkerframework.common.basetype.BaseTypeVisitor.processMethodTree(BaseTypeVisitor.java:1058)
at org.checkerframework.checker.initialization.InitializationVisitor.processMethodTree(InitializationVisitor.java:293)
at org.checkerframework.checker.nullness.NullnessVisitor.processMethodTree(NullnessVisitor.java:528)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitMethod(BaseTypeVisitor.java:954)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitMethod(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at org.checkerframework.framework.source.SourceVisitor.scan(SourceVisitor.java:92)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:408)
at org.checkerframework.common.basetype.BaseTypeVisitor.scan(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90)
at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
at jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
at org.checkerframework.framework.source.SourceVisitor.visitClass(SourceVisitor.java:98)
at org.checkerframework.common.basetype.BaseTypeVisitor.processClassTree(BaseTypeVisitor.java:603)
at org.checkerframework.checker.initialization.InitializationVisitor.processClassTree(InitializationVisitor.java:246)
at org.checkerframework.checker.nullness.NullnessVisitor.processClassTree(NullnessVisitor.java:592)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitClass(BaseTypeVisitor.java:558)
at org.checkerframework.common.basetype.BaseTypeVisitor.visitClass(BaseTypeVisitor.java:189)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56)
at org.checkerframework.framework.source.SourceVisitor.visit(SourceVisitor.java:86)
at org.checkerframework.framework.source.SourceChecker.typeProcess(SourceChecker.java:1347)
at org.checkerframework.javacutil.AbstractTypeProcessor$AttributionTaskListener.finished(AbstractTypeProcessor.java:188)
at jdk.compiler/com.sun.tools.javac.api.ClientCodeWrapper$WrappedTaskListener.finished(ClientCodeWrapper.java:828)
at jdk.compiler/com.sun.tools.javac.api.MultiTaskListener.finished(MultiTaskListener.java:132)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1418)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1375)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:973)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:311)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)
2 errors
The text was updated successfully, but these errors were encountered:
The bug-triggering program is somewhat similar to that of #6867, but causes a different issue.
Command
File
Actual behavior
The text was updated successfully, but these errors were encountered: