The ExtendedDismaxQParser class has a static class member. Klaus:
public class ExtendedDismaxQParser { protected static Class Clause { protected String foo, bar; } public Clause getAClause { Clause c;
Then I extended this class in another package:
public class SpecialDismaxQParser extends ExtendedDismaxQParser { public void whatever() { Clause c = super.getAClause(); boolean baz = c.foo.equals("foobar");
It looks like you cannot access the foo member variable, although the Clause class is protected, as well as the foo member variable.
I just want to check something about the foo member variable of Clause's protected static class. How can I do this (preferably without reflection)?
I would prefer not to change the parent class, because it is part of the library.
source share