8000 error: semanticdb-javac: · Issue #727 · sourcegraph/scip-java · GitHub
[go: up one dir, main page]

Skip to content
error: semanticdb-javac: #727
@marquiswang

Description

@marquiswang

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();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0