[Nice-commit] Nice/testsuite/compiler/abstractInterfaces reflection.testsuite,1.1,1.2
Brought to you by:
bonniot
From: Artem Gr K. <ar...@us...> - 2005-08-29 11:09:06
|
Update of /cvsroot/nice/Nice/testsuite/compiler/abstractInterfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv446/testsuite/compiler/abstractInterfaces Modified Files: reflection.testsuite Log Message: Implemented methods are to be absent from Java-compatible interfaces. Index: reflection.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/abstractInterfaces/reflection.testsuite,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** reflection.testsuite 21 May 2005 16:24:58 -0000 1.1 --- reflection.testsuite 29 Aug 2005 11:08:53 -0000 1.2 *************** *** 66,67 **** --- 66,78 ---- foo( Impl impl, B arg ) = "b"; foo( Impl impl, C arg ) = "c"; + + /// PASS + // Checks that methods with default implementation are absent from the Java-compatible interface. + Foo.class.getMethod( "abstractMethod", [] ); + try{ + Foo.class.getMethod( "aMethodWithCode", [] ); + !assert false; + }catch( java.lang.NoSuchMethodException ok ){} + /// Toplevel + interface Foo { void abstractMethod(); } + String aMethodWithCode( Foo ) = "bar"; |