From unknown Mon Jun 23 04:15:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7075: Various problems in syntax highlighting and indentation in Java mode Resent-From: Paul Pogonyshev Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Sep 2010 11:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7075@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.128498321714834 (code B ref -1); Mon, 20 Sep 2010 11:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Sep 2010 11:46:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxepl-0003rD-H5 for submit@debbugs.gnu.org; Mon, 20 Sep 2010 07:46:57 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxepj-0003r8-HC for submit@debbugs.gnu.org; Mon, 20 Sep 2010 07:46:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oxes8-0004DR-D8 for submit@debbugs.gnu.org; Mon, 20 Sep 2010 07:49:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:53987) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxes2-0004C5-03 for submit@debbugs.gnu.org; Mon, 20 Sep 2010 07:49:24 -0400 Received: from [140.186.70.92] (port=53227 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oxerp-00014n-Kk for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2010 07:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oxerl-0004AY-HG for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2010 07:49:02 -0400 Received: from bluelynx6.ukhost4u.com ([195.216.197.62]:55143) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxerl-00048z-C8 for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2010 07:49:01 -0400 Received: from [80.249.84.240] (helo=racoon.localnet) by bluelynx6.ukhost4u.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OxejM-0004gu-Ey; Mon, 20 Sep 2010 12:40:20 +0100 From: Paul Pogonyshev Date: Mon, 20 Sep 2010 14:48:21 +0300 User-Agent: KMail/1.12.3 (Linux/2.6.27.5-117.fc10.i686; KDE/4.3.3; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201009201448.21935.p.pogonyshev@anakreon.net> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bluelynx6.ukhost4u.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anakreon.net X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.3 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) A change log entry states that some work to support Java 5+ has been done: 2010-07-31 Nathaniel Flath Enhance Java Mode to handle Java 5.0 (Tiger) and Java 6 (Mustang). However, there are still many problems. To reproduce, save the example at the end of this message as a Java file. Here are the errors I see: * 'bar' and 'ham' are not highlighted as variables (but 'foo' is); * after 'new ArrayList' is not highlighted as a type (but in the field declaration it is); * ham() is not highlighted as a function name (but spam() is); * 'xyz is not highlighted as a variable (but 'abc') is; * items in enumeration 'Y' are indented incorrectly (but in 'X', which doesn't implement any interfaces, they are aligned well); they are also highlighted as variables, not as constants. Version: GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2010-09-20 on racoon Paul class Test { List foo; List bar; List ham = new ArrayList (); List spam (); List egg (); void x (List abc); void x (List xyz); enum X { A, B; } enum Y implements Z { A, B; } } From unknown Mon Jun 23 04:15:41 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Pogonyshev Subject: bug#7075: closed (Re: bug#7075: Various problems in syntax highlighting and indentation in Java mode) Message-ID: References: <201009201448.21935.p.pogonyshev@anakreon.net> X-Gnu-PR-Message: they-closed 7075 X-Gnu-PR-Package: emacs,cc-mode Reply-To: 7075@debbugs.gnu.org Date: Sun, 06 Oct 2019 11:51:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1570362662-21296-1" This is a multi-part message in MIME format... ------------=_1570362662-21296-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7075: Various problems in syntax highlighting and indentation in Java mode which was filed against the emacs,cc-mode package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7075@debbugs.gnu.org. --=20 7075: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7075 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1570362662-21296-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7075-done) by debbugs.gnu.org; 6 Oct 2019 11:50:18 +0000 Received: from localhost ([127.0.0.1]:45683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH53F-0005WJ-Uw for submit@debbugs.gnu.org; Sun, 06 Oct 2019 07:50:18 -0400 Received: from mail-pl1-f170.google.com ([209.85.214.170]:46130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH538-0005VV-JI for 7075-done@debbugs.gnu.org; Sun, 06 Oct 2019 07:50:11 -0400 Received: by mail-pl1-f170.google.com with SMTP id q24so5459688plr.13 for <7075-done@debbugs.gnu.org>; Sun, 06 Oct 2019 04:50:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Y/5RYlWP2KkXAdVdSDLguIhta6D4Z4DugVXQxs94pJA=; b=q7zuM0PubUnxHcAfSAytdNKQyxsCnEuPS+5vcnGNn/wL3g5eEi4s/FwC+lEPmqORJ5 1Ta/sIIDgxClzLva0uC6varBdBQXsYmG18eYWe0Uci9AWPg2dn3Dtfts5oah9XSGCG7p NG0CzdIzX0cgrJXMFKT3sfMakBGd7tODk0u/aT7yds1x28wXzAd5KiY4VzCkx1tg5zYM cNIawAWLexSdOifg03HEDCY8obIMbOa7bOZFpTj3gt9wK7iwYvJUnv+iN0kc7kAymTND 2xs8eOEkED9n5lormNG5A1plRCT1AI3kuDdaU/RkHcnccUunVP92FrJ6qEV8sZiyxiif 9idQ== X-Gm-Message-State: APjAAAUp3xoqhLCL2ylrahTaJHbADm3bHL04sPJO6Kk7tZuFkLDvYKmX TtFMsWPrNONm+QH/HqmerIH19jCa82+1RHOixWw1R+Q6 X-Google-Smtp-Source: APXvYqwpsZc66XShIdz4E+0Q+WNKgvUVen2dPg0mDNLh7fkpzgabs040PKrkwKfkVnbc4DvRnKiOar878i75W/FyZyI= X-Received: by 2002:a17:902:a515:: with SMTP id s21mr25278333plq.259.1570362600670; Sun, 06 Oct 2019 04:50:00 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Sun, 6 Oct 2019 13:49:49 +0200 Message-ID: Subject: Re: bug#7075: Various problems in syntax highlighting and indentation in Java mode To: Paul Pogonyshev Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 7075-done Cc: 7075-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Paul Pogonyshev writes: > A change log entry states that some work to support Java 5+ has been > done: > > 2010-07-31 Nathaniel Flath > > Enhance Java Mode to handle Java 5.0 (Tiger) and Java 6 (Mustang). > > However, there are still many problems. To reproduce, save the > example at the end of this message as a Java file. Thanks for the bug report. Sorry you had to wait 9 years for a reply. > Here are the errors I see: > * 'bar' and 'ham' are not highlighted as variables (but 'foo' is); I can't reproduce this, they both have font-lock-variable-name-face. > * after 'new ArrayList' is not highlighted as a type (but in the > field declaration it is); This seems to be fixed, too. (They all have font-lock-type-face.) > * ham() is not highlighted as a function name (but spam() is); I guess you mean "egg" (ham is a variable)? I can't reproduce this, they both have font-lock-function-name-face. > * 'xyz is not highlighted as a variable (but 'abc') is; I can't reproduce this either. xyz has font-lock-variable-name-face > * items in enumeration 'Y' are indented incorrectly (but in 'X', which > doesn't implement any interfaces, they are aligned well); they are also > highlighted as variables, not as constants. I can't reproduce this either. It indents correctly. > Version: GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) > of 2010-09-20 on racoon Since this bug was reported 9 years ago, I'm going to assume these issues have been fixed while you were waiting for a reply and close it now. If you're still seeing any of this on a modern version of Emacs, please report back and we can reopen the bug. Best regards, Stefan Kangas ------------=_1570362662-21296-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Sep 2010 11:46:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxepl-0003rD-H5 for submit@debbugs.gnu.org; Mon, 20 Sep 2010 07:46:57 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxepj-0003r8-HC for submit@debbugs.gnu.org; Mon, 20 Sep 2010 07:46:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oxes8-0004DR-D8 for submit@debbugs.gnu.org; Mon, 20 Sep 2010 07:49:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:53987) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxes2-0004C5-03 for submit@debbugs.gnu.org; Mon, 20 Sep 2010 07:49:24 -0400 Received: from [140.186.70.92] (port=53227 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oxerp-00014n-Kk for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2010 07:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oxerl-0004AY-HG for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2010 07:49:02 -0400 Received: from bluelynx6.ukhost4u.com ([195.216.197.62]:55143) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxerl-00048z-C8 for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2010 07:49:01 -0400 Received: from [80.249.84.240] (helo=racoon.localnet) by bluelynx6.ukhost4u.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OxejM-0004gu-Ey; Mon, 20 Sep 2010 12:40:20 +0100 From: Paul Pogonyshev To: bug-gnu-emacs@gnu.org Subject: Various problems in syntax highlighting and indentation in Java mode Date: Mon, 20 Sep 2010 14:48:21 +0300 User-Agent: KMail/1.12.3 (Linux/2.6.27.5-117.fc10.i686; KDE/4.3.3; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201009201448.21935.p.pogonyshev@anakreon.net> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bluelynx6.ukhost4u.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anakreon.net X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) A change log entry states that some work to support Java 5+ has been done: 2010-07-31 Nathaniel Flath Enhance Java Mode to handle Java 5.0 (Tiger) and Java 6 (Mustang). However, there are still many problems. To reproduce, save the example at the end of this message as a Java file. Here are the errors I see: * 'bar' and 'ham' are not highlighted as variables (but 'foo' is); * after 'new ArrayList' is not highlighted as a type (but in the field declaration it is); * ham() is not highlighted as a function name (but spam() is); * 'xyz is not highlighted as a variable (but 'abc') is; * items in enumeration 'Y' are indented incorrectly (but in 'X', which doesn't implement any interfaces, they are aligned well); they are also highlighted as variables, not as constants. Version: GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2010-09-20 on racoon Paul class Test { List foo; List bar; List ham = new ArrayList (); List spam (); List egg (); void x (List abc); void x (List xyz); enum X { A, B; } enum Y implements Z { A, B; } } ------------=_1570362662-21296-1--