Closed WortelSoep closed 1 year ago
Thanks for the interest in our slicer, but I'm afraid we're only in the early stages, and there are some common Java features missing (at least for now).
I've taken a look at the error, and it seems to be a lack of support for enums. It's in our roadmap for the near future, but I can't guarantee when it'll be ready.
Regarding Java slicers in general, you may want to check out WALA, as it contains a slicer for modern Java (11 at least).
Is WALA available for slicing a shared variable? I want to analyze a concurrent program and I think it is important to slice a shared variable in order to analyze its assignments and method calls.
Hi again, sorry for the late response. Right now, the latest version (not released, but the master version) has basic support for enums. If it doesn't work, please reopen the issue.
This is probably a mistake/misunderstanding on my side, so apologies in advance :sweat_smile:.
So as a general question: I'm looking for a way to apply slicing to single unit tests taken from arbritary projects (I only want to know which statements in a unit test effect the assert statement and thus do not need a slice that contains anything else). Is it currently feasible to use JavaSDGSlicer for this?
I'm getting the feeling the project is not mature enough yet to support arbritary projects looking at other issues, but I'm still interested as there don't seem to be many (if any?) java slicers avaliable.
Now I have been trying to do this for jsoup (https://github.com/jhy/jsoup), by just running the running the slicer with the following command: java -jar sdg-cli-1.2.5-jar-with-dependencies.jar -c jsoup-master\src\test\java\org\jsoup\nodes\AttributeTest.java#12:attr -i jsoup-master\src -t SDG
However that results in this exception, I have no clue what causes it so I would appreciate any help.
-- Thanks for your time!