RFR 8080557: JShell tool: Contains REPL class prefix in the documentation for the user defined method or class

ShinyaYoshida bitterfoxc at gmail.com
Thu May 21 13:35:17 UTC 2015


Hi Andrei,
Thank you for your review.

Sorry for confusing about the example.
The example code is the piece of udiff.
First of the example means that we keep the test case using Java API.
Another means that we remove the test case using Java API.

Thank you,
shinyafox(Shinya Yoshida)


2015-05-21 22:26 GMT+09:00 andrei.eremeev <andrei.eremeev at oracle.com>:

>  The fix looks good to me.
>
> On 05/21/2015 03:51 PM, ShinyaYoshida wrote:
>
> Hi Jan and Andrei,
> Could you review my patch for the issue which is reported by Andrei?
>
>  webrev:
> http://cr.openjdk.java.net/~shinyafox/kulla/8080557/webrev.00/
>  bugs:
> https://bugs.openjdk.java.net/browse/JDK-8080557
>
>  I've changed the test case of the documentation for the user defined
> constructor, it looks a test case bug:
> - assertEval1("class A<T> { A(T a) {} A(T a) {}}");
> - assertDocumentation("new A(|", "A(T a)", "A(int arg0)");
> + assertEval1("class A<T> { A(T a) {} A(int a) {}}");
> + assertDocumentation("new A(|", "A(T arg0)", "A(int arg0)");
> Andrei, this is ok?
>
> Ok!
>
>
>  And now, we can replace using Java API with using the user defined
> method or constructor in some tests.
> I add the test cases using user defined methods or constructors into some
> tests.
> Should I remove the test case which is using Java API?
>
>  For example:
>  assertDocumentation("Object.wait(|", "");
>  assertDocumentation("\"\".indexOfSupplementary(|", "");
> + assertEval1("class A {void method() {}}");
> + assertDocumentation("A.method(|", "");
> + assertEval1("class A {private void method() {}}");
> + assertDocumentation("new A().method(|", "");
>
>  or
>
>  - assertDocumentation("Object.wait(|", "");
> - assertDocumentation("\"\".indexOfSupplementary(|", "");
> + assertEval1("class A {void method() {}}");
> + assertDocumentation("A.method(|", "");
> + assertEval1("class A {private void method() {}}");
> + assertDocumentation("new A().method(|", "");
>
>  Which is good?
>
> I do not see differences between two pieces of code.
>
>
>  Regards,
> shinyafox(Shinya Yoshida)
>
>
> Andrei
>


More information about the kulla-dev mailing list