Skip to content

Fuzzer should change objects which are created with empty constructor by its public setters #289

Closed
@Markoutte

Description

@Markoutte

Description

Fuzzer can create an object with empty public constructor (created explicitly or implicitly), but it is useless because it doesn't change it's state with public setters. Idea is to find all fields that can be changed by public setters (probably that have corresponding getter) and change it.

Expected behavior

Fuzzer should try change objects like this:

class A {
  private int myField;

  pubic void setMyField(int value) {
    myField = value;
  }

  public int getMyField() {
      return myField;
  }
}

Potential alternatives

Some classes has public fields. We can change them also.

Context

This task is a part of general task for generating complex object created by fuzzer.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions