Hi, I'd like to report a bug, for which I'm not sure how proper solution should look like. Below is a test case for which I get the following error, as far as I can tell it's because method x() can not be found in abstract class A:
convert_invokevirtual: warning: unable to resolve invocation target compile_error: error: Failed to compile method `main' in class `Test2', error: -22 [main] Native and Java stack trace: [main] [<0808176a>] native : print_trace+22 (/home/tomek/projects/jato/jato/vm/stack-trace.c:765) [main] [<08076ad3>] native : do_error+22 (/home/tomek/projects/jato/jato/vm/die.c:29) [main] [<08067781>] native : <unknown> [main] [<0806fadf>] native : <unknown> [main] [<a7db533c>] trampoline : Test2.main(Test2.java:16) [main] [<080796bc>] native : do_main_class+12e (/home/tomek/projects/jato/jato/vm/jato.c:1244) [main] [<08079a77>] native : <unknown> [main] [<b7d0e60b>] native : <unknown> [main] [<08054ab0>] native : <unknown> ------------------------------------------------------------------------------------ interface X { public void x(); }; abstract class A implements X { }; class B extends A { public void x() { System.out.println("hi"); } }; public class Test2 { public static void main(String[] args) { A a = new B(); a.x(); } } -- Tomek Grabiec ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel