-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
I am getting an error: semanticdb-javac when running scip-java on my code.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project scip-java-test: Compilation failure: Compilation failure:
[ERROR] /Users/mwang/code/mwang/scip-java-test/src/main/java/com/imc/mwang/Foo.java:[1] error: semanticdb-javac:
[ERROR] /Users/mwang/code/mwang/scip-java-test/src/main/java/com/imc/mwang/Foo.java:[1] error: semanticdb-javac:
[ERROR] -> [Help 1]
After some experimentation, I believe I've narrowed it down to two patterns of code, both related to annotations:
public interface Foo {
// Redundant parentheses around the annotation parameter causes this error
@Nullable(("reason"))
String a();
// As does an annotation parameter of negative float. `-1` appears to be fine
@Bar(-1.5)
double c();
// `-1d` also fails.
@Bar(-1d)
double c();
// It fails regardless of whether the parameter is explicitly named
@Bar(value = -1d)
double d();
}
@interface Bar {
double value();
}