[kaffe] CVS kaffe (guilhem): Fixed class accessibility.

Kaffe CVS cvs-commits at kaffe.org
Wed Dec 21 10:13:12 PST 2005


PatchSet 7030 
Date: 2005/12/21 17:58:02
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixed class accessibility.

        * kaffe/kaffevm/access.c
        (checkAccess): If target and context are in the same package they are
        always visible.

Members: 
	ChangeLog:1.4549->1.4550 
	kaffe/kaffevm/access.c:1.13->1.14 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4549 kaffe/ChangeLog:1.4550
--- kaffe/ChangeLog:1.4549	Wed Dec 21 04:18:50 2005
+++ kaffe/ChangeLog	Wed Dec 21 17:58:02 2005
@@ -1,3 +1,9 @@
+2005-12-21  Guilhem Lavaux  <guilhem at kaffe.org>
+
+	* kaffe/kaffevm/access.c
+	(checkAccess): If target and context are in the same package they are
+	always visible.
+
 2005-12-20  Dalibor Topic  <robilad at kaffe.org>
 
 	* include/Makefile.am: Do not generate unused header java_io_File.h.
Index: kaffe/kaffe/kaffevm/access.c
diff -u kaffe/kaffe/kaffevm/access.c:1.13 kaffe/kaffe/kaffevm/access.c:1.14
--- kaffe/kaffe/kaffevm/access.c:1.13	Tue Dec 13 15:08:33 2005
+++ kaffe/kaffe/kaffevm/access.c	Wed Dec 21 17:58:03 2005
@@ -291,10 +291,7 @@
 	{
 		same_package = 1;
 		/* Package */
-		if (!(target->accflags & ACC_PROTECTED))
-		{
-			class_acc = 1;
-		}
+		class_acc = 1;
 	}
 
 	if( target_flags & ACC_PUBLIC )



More information about the kaffe mailing list