Fixset around SHIFT-TAB documentation
ShinyaYoshida
bitterfoxc at gmail.com
Fri Apr 17 09:00:54 UTC 2015
Hi,
I found some bugs(?) around SHIFT-TAB documentation.
Please review my fixset for the bugs.
Here is the fixset and tests:
http://cr.openjdk.java.net/~shinyafox/kulla/201504171/webrev.00/repl/src/impl/SourceCodeAnalysisImpl.java.udiff.html
Description of issues
1. REPL doesn't print method/constructor document which don't have any
parameter:
-> "".length([SHIFT-TAB]
[no output]
We can't get String#length documentation.
-> "".getBytes([SHIFT-TAB]
java.lang.String.getBytes(int arg0, int arg1, byte[] arg2, int arg3)
java.lang.String.getBytes(java.lang.String arg0)
java.lang.String.getBytes(java.nio.charset.Charset arg0)
There is String#getBytes() but it is not printed
https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#getBytes
2. REPL doesn't treat the last argument as argument:
-> "".getBytes(""[SHIFT-TAB]
java.lang.String.getBytes(int arg0, int arg1, byte[] arg2, int arg3)
java.lang.String.getBytes(java.lang.String arg0)
java.lang.String.getBytes(java.nio.charset.Charset arg0)
REPL prints all getBytes methods.
But I think it should print only the method which the first argument is
String in this case.
Regards,
shinyafox(Shinya Yoshida)
More information about the kulla-dev
mailing list