Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: semanticdb-javac: #727

Closed
marquiswang opened this issue Jul 29, 2024 · 0 comments · Fixed by #732
Closed

error: semanticdb-javac: #727

marquiswang opened this issue Jul 29, 2024 · 0 comments · Fixed by #732

Comments

@marquiswang
Copy link

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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant