Skip to content

Getting started code from documentation does not work #686

@1phan

Description

@1phan

Here is the code from sootup website:

Path pathToBinary = Paths.get("src/test/resources/BasicSetup/binary");

AnalysisInputLocation<JavaSootClass> inputLocation = 
        PathBasedAnalysisInputLocation.createForClassContainer(pathToBinary);

JavaLanguage language = new JavaLanguage(8);

Project project = 
        JavaProject.builder(language).addInputLocation(inputLocation).build();

Here is the error:

error: cannot find symbol
        AnalysisInputLocation<JavaSootClass> inputLocation = PathBasedAnalysisInputLocation.createForClassContainer(pathToBinary);
                                                                                           ^
  symbol:   method createForClassContainer(Path)
  location: class PathBasedAnalysisInputLocation

I've checked the class sootup.java.bytecode.inputlocation.PathBasedAnalysisInputLocation and I'm sure there is no method called createForClassContainer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions