From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#7075: Various problems in syntax highlighting and indentation in Java mode Date: Sun, 6 Oct 2019 13:49:49 +0200 Message-ID: References: <201009201448.21935.p.pogonyshev@anakreon.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="133363"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 7075-done@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 06 13:51:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iH54C-000YTw-Vj for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 13:51:13 +0200 Original-Received: from localhost ([::1]:32998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iH54B-0003ze-DP for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 07:51:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53084) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iH544-0003y8-La for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 07:51:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iH543-0003LK-MI for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 07:51:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36864) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iH542-0003Kg-9G; Sun, 06 Oct 2019 07:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iH542-0005Xa-6n; Sun, 06 Oct 2019 07:51:02 -0400 In-Reply-To: <201009201448.21935.p.pogonyshev@anakreon.net> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 06 Oct 2019 11:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 7075 X-GNU-PR-Package: emacs,cc-mode Mail-Followup-To: 7075@debbugs.gnu.org, stefan@marxist.se, p.pogonyshev@anakreon.net Original-Received: via spool by 7075-done@debbugs.gnu.org id=D7075.157036261821230 (code D ref 7075); Sun, 06 Oct 2019 11:51:02 +0000 Original-Received: (at 7075-done) by debbugs.gnu.org; 6 Oct 2019 11:50:18 +0000 Original-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 Original-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 Original-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) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168422 Archived-At: 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