From: Paolo Bonzini Date: Mon, 5 Feb 2007 09:58:04 +0000 (+0000) Subject: 2007-02-05 Paolo Bonzini X-Git-Tag: v2.3b~162 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/8a93f8e60ca618ab8442c79f4f5d68ab43231e63 2007-02-05 Paolo Bonzini * data/lalr1.java (Stack): Work around old verifiers that disallow access to the private fields of an inner class, from the outer class. We can make Stack's fields public because user code doesn't have access to the instance of Stack used by parse(). --- diff --git a/data/lalr1.java b/data/lalr1.java index 7c1add69..ce77bd29 100644 --- a/data/lalr1.java +++ b/data/lalr1.java @@ -224,8 +224,8 @@ b4_token_enums(b4_tokens) ]b4_locations_if([[private ]b4_location_type[[] locStack = new ]b4_location_type[[16];]])[ private ]b4_union_name[[] valueStack = new ]b4_union_name[[16]; - private int size = 16; - private int height = -1; + public int size = 16; + public int height = -1; public final void push (int state, ]b4_union_name[ value]dnl b4_locations_if([, ]b4_location_type[ loc])[) { @@ -278,7 +278,7 @@ b4_token_enums(b4_tokens) } // Print the state stack on the debug stream. - private void print (java.io.PrintStream out) + public void print (java.io.PrintStream out) { out.print ("Stack now");