]> git.saurik.com Git - bison.git/commitdiff
2007-02-05 Paolo Bonzini <bonzini@gnu.org>
authorPaolo Bonzini <bonzini@gnu.org>
Mon, 5 Feb 2007 09:58:04 +0000 (09:58 +0000)
committerPaolo Bonzini <bonzini@gnu.org>
Mon, 5 Feb 2007 09:58:04 +0000 (09:58 +0000)
* 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().

data/lalr1.java

index 7c1add6997a99371c5bc16cee7258a72ed8e91f5..ce77bd294dc4eb627293790608ecff228bf5f4b1 100644 (file)
@@ -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");