Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 83286 invoked from network); 16 Aug 2007 16:28:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Aug 2007 16:28:45 -0000 Received: (qmail 61122 invoked by uid 500); 16 Aug 2007 16:28:42 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 61093 invoked by uid 500); 16 Aug 2007 16:28:42 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 61082 invoked by uid 99); 16 Aug 2007 16:28:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 09:28:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 16:29:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 638211A981A; Thu, 16 Aug 2007 09:28:20 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r566765 - /directory/shared/branches/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParserImpl.java Date: Thu, 16 Aug 2007 16:28:20 -0000 To: commits@directory.apache.org From: akarasulu@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070816162820.638211A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: akarasulu Date: Thu Aug 16 09:28:19 2007 New Revision: 566765 URL: http://svn.apache.org/viewvc?view=rev&rev=566765 Log: applying changes to protect input pipe from trunk to 0.9.5 branch which is used by ads 1.0 Modified: directory/shared/branches/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParserImpl.java Modified: directory/shared/branches/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParserImpl.java URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParserImpl.java?view=diff&rev=566765&r1=566764&r2=566765 ============================================================================== --- directory/shared/branches/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParserImpl.java (original) +++ directory/shared/branches/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParserImpl.java Thu Aug 16 09:28:19 2007 @@ -21,7 +21,6 @@ import java.io.PipedOutputStream; -import java.io.PipedInputStream; import java.io.IOException; import java.text.ParseException; @@ -31,6 +30,7 @@ import org.apache.directory.shared.ldap.filter.AntlrFilterParser; import org.apache.directory.shared.ldap.filter.AntlrFilterValueLexer; import org.apache.directory.shared.ldap.filter.AntlrFilterValueParser; +import org.apache.directory.shared.ldap.util.ParserPipedInputStream; import org.apache.directory.shared.ldap.util.StringTools; @@ -67,7 +67,7 @@ { // build the pipe used to feed the parser data and reusing it this.parserPipe = new PipedOutputStream(); - PipedInputStream pipeTail = new PipedInputStream(); + ParserPipedInputStream pipeTail = new ParserPipedInputStream(); try { @@ -75,7 +75,7 @@ } catch ( IOException e ) { - // this never blows chuncks and if it does we report! + // this never blows chunks and if it does we report! throw new InternalError(); }