[kaffe] CVS kaffe (robilad): Fix for accessibilty of superclass methods

Kaffe CVS cvs-commits at kaffe.org
Tue May 17 21:19:13 PDT 2005


PatchSet 6541 
Date: 2005/05/18 04:14:16
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fix for accessibilty of superclass methods

2005-05-18  Rei Odaira <ray at is.s.u-tokyo.ac.jp>

        * kaffe/kaffevm/classMethod.c:
        (getInheritedMethodIndex) Check whether method
        is accessible.

Members: 
	ChangeLog:1.4067->1.4068 
	kaffe/kaffevm/classMethod.c:1.142->1.143 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4067 kaffe/ChangeLog:1.4068
--- kaffe/ChangeLog:1.4067	Wed May 18 00:44:04 2005
+++ kaffe/ChangeLog	Wed May 18 04:14:16 2005
@@ -1,3 +1,9 @@
+2005-05-18  Rei Odaira <ray at is.s.u-tokyo.ac.jp>
+
+	* kaffe/kaffevm/classMethod.c:
+	(getInheritedMethodIndex) Check whether method 
+	is accessible.
+
 2005-05-18  Julio M. Merino Vidal <jmmv84 at gmail.com>
 
 	* libraries/javalib/gnu/classpath/tools/rmi/rmic/Compiler.java:
Index: kaffe/kaffe/kaffevm/classMethod.c
diff -u kaffe/kaffe/kaffevm/classMethod.c:1.142 kaffe/kaffe/kaffevm/classMethod.c:1.143
--- kaffe/kaffe/kaffevm/classMethod.c:1.142	Sat May 14 21:46:31 2005
+++ kaffe/kaffe/kaffevm/classMethod.c	Wed May 18 04:14:18 2005
@@ -1959,7 +1959,8 @@
 		Method* mt = CLASS_METHODS(super);
 		for (; --j >= 0;  ++mt) {
 			if (utf8ConstEqual (mt->name, meth->name) &&
-			    utf8ConstEqual (METHOD_SIG(mt), METHOD_SIG(meth)))
+			    utf8ConstEqual (METHOD_SIG(mt), METHOD_SIG(meth)) &&
+			    checkMethodAccess(meth->class, super, mt))
 			{
 				meth->idx = mt->idx;
 				return (true);




More information about the kaffe mailing list