typetools / typetools/checker-framework

Signedness Checker support for bit patterns

Open
#3,211 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Some values are not arithmetic quantities, but are manipulated as a pattern of bits.
An example is the return value of Double.doubleToLongBits. Another example is a value used as a bitset.

The task is to add a new qualifier to the Signedness Checker to represent such values. It could be named @BitPattern or the like.

This type qualifier is a subtype of @UnknownSignedness and a supertype of @SignednessBottom, but is unrelated to all other type qualifiers.
All bitwise operators and shifts are permitted. All arithmetic operators are forbidden.

This will replace https://github.com/typetools/checker-framework/pull/3210 and https://github.com/typetools/jdk/pull/43; see them for examples of where annotations are needed in the JDK.

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 by reviewing the Signedness Checker implementation and the examples in checker-framework#3210 and typetools/jdk#43, which the issue identifies as replacements. Define the new qualifier's hierarchy and operator rules, then verify that the needed JDK annotations are covered and the checker tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.