Update of /cvsroot/nice/Nice/regtest/java/J
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25363/regtest/java/J
Modified Files:
J.java
Log Message:
Do not create custom constructors based on unaccessible parent constructors.
Correct access checking for default (non-protected) visibility.
Index: J.java
===================================================================
RCS file: /cvsroot/nice/Nice/regtest/java/J/J.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** J.java 19 Feb 2004 11:30:03 -0000 1.4
--- J.java 20 Sep 2004 10:24:42 -0000 1.5
***************
*** 4,11 ****
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) {}
--- 4,13 ----
public J() {}
+ public J(Object dummy) {}
+
// 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(String dummy) {}
public void access(Object o) {}
|