Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76DD6D2E2 for ; Sat, 3 Nov 2012 16:31:13 +0000 (UTC) Received: (qmail 70016 invoked by uid 500); 3 Nov 2012 16:31:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 69889 invoked by uid 500); 3 Nov 2012 16:31:12 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 69880 invoked by uid 99); 3 Nov 2012 16:31:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2012 16:31:12 +0000 Date: Sat, 3 Nov 2012 16:31:12 +0000 (UTC) From: "John Wang (JIRA)" To: dev@lucene.apache.org Message-ID: <1657537149.64893.1351960272269.JavaMail.jiratomcat@arcas> In-Reply-To: <2104402223.64881.1351958352294.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (LUCENE-4530) ArrayOutofBoundsException with WhiteSpaceAnalyzer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-4530?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D134= 90050#comment-13490050 ]=20 John Wang commented on LUCENE-4530: ----------------------------------- I should have read the docs :) My bad! =20 > ArrayOutofBoundsException with WhiteSpaceAnalyzer > ------------------------------------------------- > > Key: LUCENE-4530 > URL: https://issues.apache.org/jira/browse/LUCENE-4530 > Project: Lucene - Core > Issue Type: Bug > Components: modules/analysis > Affects Versions: 4.0 > Reporter: John Wang > > Run the following test and get an AOOBE. > @Test > public void testLucene() throws Exception { > Analyzer analyzer =3D new StandardAnalyzer(Version.LUCENE_40); > String text =3D "=D8=A3=D8=B9=D8=AC=D8=A8=D9=86=D9=8A =D9=85=D9=82=D8=B7= =D8=B9 =D9=81=D9=8A=D8=AF=D9=8A=D9=88 =D9=81=D9=8A =D8=A7=D9=84=D9=85=D9=84= =D9=81=D8=A7=D8=AA =D8=A7=D9=84=D8=B3=D8=B1=D9=8A=D8=A9 =D9=84=D9=84=D8=A5= =D8=AE=D9=88=D8=A7=D9=86 | =D8=A7=D9=84=D8=B3=D9=85=D8=B9 =D9=88=D8=A7=D9= =84=D8=B7=D8=A7=D8=B9=D8=A9 | =D8=B3=D8=B1=D9=8A =D8=AC=D8=AF=D8=A7=D9=8B = =E3=83=85 "; > org.apache.lucene.analysis.TokenStream stream =3D new WhitespaceTokenizer= (Version.LUCENE_40, new CharSequenceReader(text)); > CharTermAttribute termAttr =3D stream.getAttribute(CharTermAttribute.clas= s); > while (stream.incrementToken()){ System.out.println(termAttr.toString());= } > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org