corda/test/avian
Joel Dice 25d69f38ee match Java's schizophrenic concept of inner class access modifiers
An inner class has two sets of modifier flags: one is declared in the
usual place in the class file and the other is part of the
InnerClasses attribute.  Not only is that redundant, but they can
contradict, and the VM can't just pick one and roll with it.  Instead,
Class.getModifiers must return the InnerClasses version, whereas
reflection must check the top-level version.  So even if
Class.getModifiers says the class is protected, it might still be
public for the purpose of reflection depending on what the
InnerClasses attribute says.  Crazy?  Yes.
2014-03-06 16:17:43 -07:00
..
testing/annotations Test complicated annotation constructs 2013-11-27 10:39:28 -06:00
TestReflection.java match Java's schizophrenic concept of inner class access modifiers 2014-03-06 16:17:43 -07:00