Update of /cvsroot/nice/Nice/src/gnu/bytecode
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14119/src/gnu/bytecode
Modified Files:
CodeAttr.java
Log Message:
Give a more precise message about methods that are not accessible.
Index: CodeAttr.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/CodeAttr.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** CodeAttr.java 2 Feb 2004 09:37:57 -0000 1.22
--- CodeAttr.java 19 Feb 2004 12:30:40 -0000 1.23
***************
*** 1107,1111 ****
if (! Access.legal(getMethod().getDeclaringClass(), method, receiverType))
throw new VerificationError
! ("Method " + method.getName() + " is not accessible");
put1(opcode); // invokevirtual, invokespecial, or invokestatic
--- 1107,1111 ----
if (! Access.legal(getMethod().getDeclaringClass(), method, receiverType))
throw new VerificationError
! ("Method " + method.toString() + " is not accessible");
put1(opcode); // invokevirtual, invokespecial, or invokestatic
|