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 AAD94FA4F for ; Mon, 1 Apr 2013 10:41:19 +0000 (UTC) Received: (qmail 77297 invoked by uid 500); 1 Apr 2013 10:41:18 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 76462 invoked by uid 500); 1 Apr 2013 10:41:17 -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 76422 invoked by uid 99); 1 Apr 2013 10:41:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Apr 2013 10:41:16 +0000 Date: Mon, 1 Apr 2013 10:41:16 +0000 (UTC) From: "Steve Rowe (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-4877) Fix analyzer factories to throw exception when arguments are invalid MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-4877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13618736#comment-13618736 ] Steve Rowe commented on LUCENE-4877: ------------------------------------ {quote} bq. Should we create a branch. I also have some ideas to fix... We can, or maybe just use trunk? I don't think the patch makes these factories any worse. {quote} +1 to commit Robert's patch to trunk and iterate there. > Fix analyzer factories to throw exception when arguments are invalid > -------------------------------------------------------------------- > > Key: LUCENE-4877 > URL: https://issues.apache.org/jira/browse/LUCENE-4877 > Project: Lucene - Core > Issue Type: Bug > Components: modules/analysis > Reporter: Robert Muir > Attachments: LUCENE-4877_one_solution_prototype.patch, LUCENE-4877.patch, LUCENE-4877.patch, LUCENE-4877.patch > > > Currently if someone typos an argument "someParamater=xyz" instead of someParameter=xyz, they get no exception and sometimes incorrect behavior. > It would be way better if these factories threw exception on unknown params, e.g. they removed the args they used and checked they were empty at the end. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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