Skip to content

NPEFix Fails to Run on the Defects4J Dataset #29

@Peanu11

Description

@Peanu11

Dear NPEFix's maintainers,
Hello! I recently attempted to run NPEFix on the Defects4J dataset, but it failed on NPE examples from the Math, Chart, Mockito, and Lang etc. projects. The error messages on Chart983 and Mockito188 are shown in the images below.
image
image

Here’s how I used it:
java -jar "$NPEFIX_JAR" --source "$src_dir:$test_dir" --classpath "$classpath" --test "$test_classes"
Where:

  • src_dir=$(defects4j export -p dir.src.classes)
  • test_dir=$(defects4j export -p dir.src.tests)
  • classpath=$(defects4j export -p cp.test)
  • test_classes is a colon-separated list generated from defects4j export -p tests.relevant.
    I noticed that the usage instructions in the README and the jar example for reproducing experiments are no longer compatible with the current version. Could you tell me if there are any issues with my usage or parameter settings? Or could you provide an example that works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions