typetools / typetools/checker-framework

Simpler testing of libraries that are read as bytecode

Open
#758 3 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

For testing the interaction between source code and bytecode, such as when calling a method in bytecode from source code with the -AuseDefaultsForUncheckedCode=bytecode option turned on, there is currently no single bytecode library that is available to all JUnit tests and to which new classes can be added. It would be helpful to add a library available to all JUnit tests that is built before any JUnit tests are run. This would allow the author of code that tests such an interaction to focus on the feature being tested and not on the configuration of JUnit tests. Such a library would also make it easier to discover the set of tests that verify interactions with bytecode.

For practical reasons, there may need to be two separate bytecode libraries for Framework tests and Checker tests.

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 inspecting the JUnit test and build configuration for the Framework and Checker tests, focusing on how test libraries are currently prepared. Done means a shared bytecode library, or separate libraries where necessary, is built before the tests run, is available to all relevant tests, and supports adding new classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.