Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 74849 invoked from network); 4 May 2006 23:50:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 23:50:46 -0000 Received: (qmail 95208 invoked by uid 500); 4 May 2006 23:50:45 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 95177 invoked by uid 500); 4 May 2006 23:50:45 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 95165 invoked by uid 99); 4 May 2006 23:50:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 16:50:45 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [203.81.36.24] (HELO smtpgate4.pacific.net.sg) (203.81.36.24) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 May 2006 16:50:44 -0700 Received: (qmail 22543 invoked from network); 4 May 2006 23:50:19 -0000 Received: from maxwell6.pacific.net.sg (203.120.90.212) by smtpgate4.pacific.net.sg with SMTP; 4 May 2006 23:50:18 -0000 Received: from tongkiat ([60.32.176.184]) by maxwell6.pacific.net.sg with ESMTP id <20060504235017.GYCQ1180.maxwell6.pacific.net.sg@tongkiat> for ; Fri, 5 May 2006 07:50:17 +0800 From: "Chiah Tong Kiat" To: Subject: patch for ClobImpl for JDK 1.3 Date: Fri, 5 May 2006 07:50:21 +0800 Message-ID: <000801c66fd5$81a59ef0$1c0a0a0a@Silicomp.com.sg> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0009_01C67018.8FC8DEF0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0009_01C67018.8FC8DEF0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Made some small changes to get ClobImpl classes compiled in jdk1.3 Thanks tongkiat Index: ClobImpl.java =================================================================== --- ClobImpl.java (revision 399870) +++ ClobImpl.java (working copy) @@ -154,13 +154,13 @@ public long position(String searchstr, long start) throws SQLException { checkMethod(); - return getWriter().getBuffer().indexOf(searchstr, (int) --start); + return getWriter().toString().indexOf(searchstr, (int) --start); } public long position(Clob searchstr, long start) throws SQLException { checkMethod(); - return getWriter().getBuffer().indexOf( + return getWriter().toString().indexOf( searchstr.getSubString(0, (int) searchstr.length()), (int) --start); } ------=_NextPart_000_0009_01C67018.8FC8DEF0--