Quation about the spec of SourceCodeAnalysis#analyzeCompletion WAS: RFR 8143006: JShell tool: EditPad doesn't process each line as same as inputs for jshell

ShinyaYoshida bitterfoxc at gmail.com
Mon Nov 16 06:13:10 UTC 2015


Hi,
I'd like ask about the spec of SourceCodeAnalysis#analyzeCompletion.

When I call SourceCodeAnalysis#analyzeCompletion with "f()\nf()", what
result should be returned?

Currently, it returns:
CompletionInfo {
    completeness = COMPLETE
    unitEndPos = 7
    source = "f()\nf()"
    remaining = ""
}

Is this correct?

I think it is not suitable for JShell API
Another possibility which is suitable for JShell API is here:
CompletionInfo {
    completeness = COMPLETE
    unitEndPos = 4
    source = "f()"
    remaining = "\nf()"
}

Which should be do?

If this is a bug, can I work for this?

Regards,
shinyafox(Shinya Yoshida)


More information about the kulla-dev mailing list