Skip to content

Preserve method parameter names in JAR #31

@bentsherman

Description

@bentsherman

The language server uses reflection to provide things like hover hints for built-in classes like Channel. Method parameter names are not included by default in compiled Java code, but it should be possible to include them with the -parameters flag.

I tried it with this gradle config but it didn't work:

compileJava {
    options.compilerArgs << '-parameters' 
}

compileGroovy {
    options.compilerArgs << '-parameters' 
}

It compiled but then the hover hint was still incorrect:

Channel.of(arg0: T...) -> DataflowWriteChannel<T>

I probably just did something wrong in gradle, will come back to this later

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions