Update of /cvsroot/nice/Nice/regtest/java/J
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2646/regtest/java/J
Modified Files:
J.java
Log Message:
Postpone the distinction between protected and default until we have
implemented visibility in Nice.
Index: J.java
===================================================================
RCS file: /cvsroot/nice/Nice/regtest/java/J/J.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** J.java 10 Dec 2003 22:34:25 -0000 1.3
--- J.java 19 Feb 2004 11:30:03 -0000 1.4
***************
*** 2,5 ****
--- 2,15 ----
public class J {
+ public J() {}
+
+ // A constructor with default visibility.
+ // We'll make sure that we can subclass this class in a different package
+ // in Nice, in which case this constructor must be igored.
+ J(Object dummy) {}
+
+ public void access(Object o) {}
+ void access(String o) { throw new Error("Not accessible"); }
+
Object obj;
|