Right direction?
Matthias Ernst
ernst.matthias at gmail.com
Thu May 31 14:28:38 PDT 2007
Dmytro,
I was not aware of this bug report but yes that is exactly what this is about.
I don't have a formal test suite, the test I've used is attached.
Matthias
On 5/31/07, Dmytro Sheyko <dmytro_sheyko at hotmail.com> wrote:
> Could you send tests you use as well?
>
> PS
> Just curiosity: Is your experimental feature about
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6373386 (RFE: Method
> chaining for instance methods that return void )?
-------------- next part --------------
package test;
public class CascadingTest {
public static void main(String[] args) {
System.out.println(new Sub().m().m2()).println("Yes");
}
public void m() {
new Runnable() {
public void run() {
CascadingTest.this.m3().m3();
}
}.run();
}
public void m3() {
}
}
class Sub extends CascadingTest {
public void m2() {
CascadingTest p = super.m();
}
}
More information about the compiler-dev
mailing list