LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File java-cup-lr_parser-constructor.patch of Package java-cup (Project Java:packages)

--- develop/src/java_cup/runtime/lr_parser.java	2006-03-28 14:34:53.000000000 +0300
+++ develop/src/java_cup/runtime/lr_parser.java.f	2007-06-23 11:01:53.000000000 +0300
@@ -121,6 +121,7 @@
      * Simple constructor. 
      */
     public lr_parser() {
+        symbolFactory = new DefaultSymbolFactory();
     }
     
     /** 
@@ -133,7 +134,6 @@
      * Constructor that sets the default scanner and a SymbolFactory
      */
     public lr_parser(Scanner s, SymbolFactory symfac) {
-        this(); // in case default constructor someday does something
         symbolFactory = symfac;
         setScanner(s);
     }