hlship      2004/06/25 13:30:18

  Modified:    framework/src/javacc SimpleDataLanguageParser.jj
               .        status.xml
  Log:
  [HIVEMIND-9] Make SimpleDataLanguageParser emit SAX parse events using an 
empty, not null, namespace.
  
  Revision  Changes    Path
  1.3       +8 -6      
jakarta-hivemind/framework/src/javacc/SimpleDataLanguageParser.jj
  
  Index: SimpleDataLanguageParser.jj
  ===================================================================
  RCS file: 
/home/cvs/jakarta-hivemind/framework/src/javacc/SimpleDataLanguageParser.jj,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SimpleDataLanguageParser.jj       25 Jun 2004 20:20:02 -0000      1.2
  +++ SimpleDataLanguageParser.jj       25 Jun 2004 20:30:18 -0000      1.3
  @@ -72,7 +72,7 @@
        {
                // No namespace, no qualified name
                
  -             try { _handler.startElement(null, elementName, null, 
attributes); }
  +             try { _handler.startElement("", elementName, null, attributes); 
}
                catch (SAXException ex) { handleException(ex); }
        }
   
  @@ -80,7 +80,7 @@
        {
                // No namespace, no qualified name
                
  -             try { _handler.endElement(null, elementName, elementName); }
  +             try { _handler.endElement("", elementName, elementName); }
                catch (SAXException ex) { handleException(ex); }
        }
   
  @@ -101,7 +101,7 @@
   
        private void addAttribute(AttributesImpl attributes, String name, 
String value)
        {
  -             attributes.addAttribute(null, name, name, "CDATA", value);
  +             attributes.addAttribute("", name, name, "CDATA", value);
        }
   
        private String unquote(String input)
  @@ -163,10 +163,12 @@
                int length = input.length();
                
                return input.substring(2, length - 2);
  +             
  +// The remainder of this class is generated by JavaCC.
  +///CLOVER:OFF                
        }
   
  -// The remainder of this class is generated by JavaCC.
  -///CLOVER:OFF
  +
                
   }
   PARSER_END(SimpleDataLanguageParser)
  
  
  
  1.14      +4 -0      jakarta-hivemind/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/status.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- status.xml        25 Jun 2004 20:20:06 -0000      1.13
  +++ status.xml        25 Jun 2004 20:30:18 -0000      1.14
  @@ -80,6 +80,10 @@
           Restore the <code>getConfiguration()</code> and 
<code>expandSymbols()</code>
           methods to the <code>Registry</code> interface.
         </action>
  +      <action type="fix" devl="HLS" fixes-bug="HIVEMIND-9" 
  +        due-to="Dieter Bogdoll"> SimpleDataLanguageParser calls the 
  +        ContentHandler with a null namespace argument instead of "". That 
leads 
  +        to some problems if you want to use transformers. </action>
       </release>
     </changes>
   </status>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to