typetools / typetools/checker-framework

Support Java 21 and 22 constructs in `.ajava` files

Open
#7,016 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.1k
Forks
440
Avg merge
1d 12h
Merged PRs (30d)
134

Description

This requires support from JavaParser (or switching to a different parsing approach). Right now in certain places we bail out for these Java versions, e.g.:

https://github.com/typetools/checker-framework/blob/ba4e6391e17c452595bc4245348df16526483ec4/framework/src/main/java/org/checkerframework/common/basetype/BaseTypeVisitor.java#L423-L425

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the linked BaseTypeVisitor.java location and investigate where Java 21 and 22 constructs in .ajava files are rejected. Check whether JavaParser can provide the required support or whether a different parsing approach is needed; done means these constructs no longer trigger the reported version bailouts.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.