Nice/testsuite/compiler/abstractInterfaces reflection.testsuite,1.1,1.2
Artem Gr Kozarezov <[email protected]> Mon, 29 Aug 2005 11:08:55 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
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";
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf