Update of /cvsroot/nice/Nice/testsuite/compiler/abstractInterfaces
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7319/testsuite/compiler/abstractInterfaces
Modified Files:
existingClass.testsuite
Log Message:
Only allow an existing class to implement a non-abstract interface if the class
is defined in Nice.
Index: existingClass.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/abstractInterfaces/existingClass.testsuite,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** existingClass.testsuite 11 Jun 2004 15:53:35 -0000 1.7
--- existingClass.testsuite 15 Jul 2004 10:53:29 -0000 1.8
***************
*** 80,84 ****
/// PASS
// bug #904327
! // When implementing a non-abstract interface, the class must really
// implement that interface in the bytecode.
--- 80,84 ----
/// PASS
// bug #904327
! // When implementing a non-abstract interface, the class must really
// implement that interface in the bytecode.
***************
*** 97,98 ****
--- 97,111 ----
class vendor.Vendor implements ITest;
+
+ /// FAIL
+ // bug #989049
+ // Making an existing class implement a non-abstract interface
+ // can only be done with classes defined in Nice.
+ String a = "hello";
+ println( a.test() );
+
+ /// Toplevel
+ interface ITest { String test(); }
+
+ class /*/// FAIL HERE */ java.lang.String implements ITest;
+ test(String a) = "done";
|