------- Comment #2 from mckinlay at redhat dot com 2006-06-01 11:07 ------- This rule is mentioned in the last paragraph of JVMS, S 5.4.4:
http://java.sun.com/docs/books/vmspec/2nd-edition/html/ConstantPool.doc.html#75929 It is explicitly stated that this is checked during verification, unlike other accessibility checks which are performed at link time. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20047