Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception after upgrade from 3.47.0 to 3.48.0 #6842

Closed
romani opened this issue Oct 4, 2024 · 1 comment
Closed

Exception after upgrade from 3.47.0 to 3.48.0 #6842

romani opened this issue Oct 4, 2024 · 1 comment
Assignees
Labels

Comments

@romani
Copy link

romani commented Oct 4, 2024

Sorry for not following template, I will update as required a bit later:

As explained in the instructions for submitting an issue at https://checkerframework.org/manual/#reporting-bugs, please include four pieces of information:

  • commands (that can be cut-and-pasted into a command shell),
  • inputs,
  • outputs, and
  • expectation.

detected at checkstyle/checkstyle#15731

commands:

git clone git@github.com:checkstyle/checkstyle.git
cd checkstyle
mvn -e --no-transfer-progress clean compile  -Pchecker-index,no-validations

with groovy:

./.ci/checker-framework.groovy checker-index

this groovy just wraps execution to handle suppressions after mvn is finished.

exception:

Warning:  /home/runner/work/checkstyle/checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/
xpath/iterators/ReverseListIterator.java:[53,25] [type.argument.inference.crashed]
 Type argument inference crashed for ArrayList constructor
  error: An exception occurred: class org.checkerframework.framework.type
.AnnotatedTypeMirror$AnnotatedTypeVariable cannot be cast to class 
org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType 
(org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedTypeVariable and 
org.checkerframework.framework.type.AnnotatedTypeMirror$AnnotatedWildcardType are 
in unnamed module of loader java.net.URLClassLoader @15bb6bea)

Expected: no exceptions.

@smillst
Copy link
Member

smillst commented Oct 11, 2024

Thanks for reporting! I think this is the same crash that I fixed in #6850. I'm going to do a bug fix release today including that fix. So, if the crash is not fixed after that release, please let us know.

@smillst smillst closed this as completed Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants