Conversation
Marcono1234
reviewed
Nov 28, 2025
src/main/java/com/code_intelligence/jazzer/mutation/mutator/lang/IntegralMutatorFactory.java
Outdated
Show resolved
Hide resolved
75b52d2 to
a9aed6c
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds support for char and Character types to the mutation framework, which was previously missing support for Java's character primitive type.
Key changes:
- Implemented
char/Charactermutator inIntegralMutatorFactory - Added
@InRangeannotation support for character types - Created test coverage for the new character mutator functionality
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/main/java/com/code_intelligence/jazzer/mutation/mutator/lang/IntegralMutatorFactory.java |
Adds character mutator implementation and updates AbstractIntegralMutator to support non-Number types |
src/main/java/com/code_intelligence/jazzer/mutation/annotation/InRange.java |
Extends @InRange annotation to support char and Character types |
src/test/java/com/code_intelligence/jazzer/mutation/mutator/StressTest.java |
Adds stress test case for character mutator |
tests/src/test/java/com/example/CharFuzzer.java |
Adds example fuzzer demonstrating character mutation with @InRange |
tests/BUILD.bazel |
Adds build configuration for the new CharFuzzer test |
docs/mutation-framework.md |
Updates documentation to include char and Character in @InRange annotation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a9aed6c to
3eb3f8d
Compare
kyakdan
approved these changes
Dec 18, 2025
3eb3f8d to
c464efd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We forgot about chars in the past!
Not sure if
@Positiveand@Negative, etc. make sense on chars (the only signed integral in Java? 😆)@InRangecan be used like in the sample fuzz test.