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 69D0C7100 for ; Fri, 30 Sep 2011 15:24:13 +0000 (UTC) Received: (qmail 77578 invoked by uid 500); 30 Sep 2011 15:24:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 77522 invoked by uid 500); 30 Sep 2011 15:24: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 77511 invoked by uid 99); 30 Sep 2011 15:24:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 15:24:11 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 15:24:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 98F1B2A2C52 for ; Fri, 30 Sep 2011 15:23:47 +0000 (UTC) Date: Fri, 30 Sep 2011 15:23:47 +0000 (UTC) From: "Steven Rowe (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <1301358167.11717.1317396227628.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1483869481.10938.1317379545668.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3477) Fix JFlex tokenizer compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118137#comment-13118137 ] Steven Rowe commented on LUCENE-3477: ------------------------------------- Thanks Mike! bq. All these seem to be identical (fall-throughs to breaks). Looks fine to me. Right, I too checked all of the locations, and as you say, all fall-throughs were to cases that were break-only. This was likely intentionally generated code, rather than spookiness, and given that it's not intended to be user modifiable, probably not a problem or source of potential future problems. That said, JFlex code generation should add breaks for emtpy/comment-only user-supplied action code, or at least turn off fallthrough warnings with a compiler directive. The real problem here is the warnings, which Mike's patch fixes. (Having to add "naked" breaks does seem weird, but it's functional.) I successfully regenerated from the .jflex sources ({{ant jflex}} under {{modules/analysis/common/}}, and all tests pass. +1 > Fix JFlex tokenizer compiler warnings > ------------------------------------- > > Key: LUCENE-3477 > URL: https://issues.apache.org/jira/browse/LUCENE-3477 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Michael McCandless > Fix For: 3.5, 4.0 > > Attachments: LUCENE-3477.patch > > > We get lots of distracting fallthrough warnings running "ant compile" > in modules/analysis, from the tokenizers generated from JFlex. > Digging a bit, they actually do look spooky. > So I managed to edit the JFlex inputs to insert a bunch of break > statements in our rules, but I have no idea if this is > right/dangerous, and it seems a bit weird having to do such insertions > of "naked" breaks. > But, this does fix all the warnings, and all tests pass... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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