Closed jonathan-m-phillips closed 2 weeks ago
@jonathan-m-phillips this looks like expected behavior to me. There are two issues:
--jarPath
argument will also be on the classpath when compiling the output. So, add -cp "/path/to/checker-qual.jar"
when you try to compile Specimin's output. This will resolve two of the three errors (the one about the package not existing and the symbol not found one).com.sun.tools.javac.code.Symbol
. When the original code is compiled, it must be compiled with a special flag. I think you need --add-exports $PACKAGE=ALL-UNNAMED
, where $PACKAGE
is the package being used (in this case com.sun.tools.javac.code
).I received this error message, error: package com.sun.tools.javac.code is not visible, 100 times when running ASHE on the CF's javacutil directory.
Are there examples that do not successfully minimize? If so, can you provide a Specimin command for them?
@kelloggm Thank you for the solution to the problem I was facing!
Are there examples that do not successfully minimize? If so, can you provide a Specimin command for them?
I did not see any that were not successfully minimizing.
I did not see any that were not successfully minimizing.
Great, then I think we can close this issue.
I received this error message,
error: package com.sun.tools.javac.code is not visible
, 100 times when running ASHE on the CF's javacutil directory.The below successfully minimized:
--args=--outputDirectory "/my/temp/dir" --root "/my/root/checker-framework/javacutil/src" --targetFile "main/java/org/checkerframework/javacutil/trees/DetachedVarSymbol.java" --targetMethod "org.checkerframework.javacutil.trees.DetachedVarSymbol#setDeclaration(VariableTree)" --jarPath "/path/to/checker-qual.jar"
Attempted Compiling Java files: