Coder Social home page Coder Social logo

gu-youngfeng / patool Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 11.34 MB

Give some example of usage of some Program Analysis Tools

Home Page: https://github.com/Gu-Youngfeng/PATool

License: Apache License 2.0

Java 100.00%
java junit4 slicer spoon

patool's People

Contributors

anonymoususer0407 avatar gu-youngfeng avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

anbgeorge

patool's Issues

Javaslicer Typical Error

Here are some typical and common errors when using Javaslicer (NOT installation error), I list them here to guide us in debugging.

1. Wrong target class (we have no such class)

Error: Could not find or load main class org.xp.sample.Sample
Error parsing slicing criterion: 
Class "org.xp.sample.Sample" does not occure in the trace.

2. Wrong target function (we have no such function in target class)

Error parsing slicing criterion: 
Method "showAnything2" does not exist in class "org.xp.sample.Sample1"

3. Wrong target line number (line number is not matched with corresponding function)

Error parsing slicing criterion: 
Found no method with name showAnything in class org.xp.sample.Sample1 
which contains line number 5

4. If the target class does not have a main class

0.0% done, time left: unknown                               
100.0% done, time left: unknown  
finished
The dynamic slice for criterion [org.xp.sample.Sample2.showSample2:18:*]:

Slice consists of 0 bytecode instructions.
Computation took 0.44 seconds.
Error: Main method not found in class org.xp.sample.Sample2, 
please define the main method as:  public static void main(String[] args)

5. If the target function is not invoked by main function(the function is not executed by project)

0.0% done, time left: unknown                               
100.0% done, time left: unknown  
finished
The dynamic slice for criterion [org.xp.sample.Sample1.showAnything:36:*]:

Slice consists of 0 bytecode instructions.
Computation took 0.32 seconds.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.