GNU bug report logs - #7075
Various problems in syntax highlighting and indentation in Java mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,cc-mode; Reported by: Paul Pogonyshev <p.pogonyshev@HIDDEN>; dated Mon, 20 Sep 2010 11:47:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 7075-quiet <at> debbugs.gnu.org:


Received: (at 7075-quiet) by debbugs.gnu.org; 3 Oct 2011 22:11:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 03 18:11:16 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RAqjE-0008BP-AH
	for submit <at> debbugs.gnu.org; Mon, 03 Oct 2011 18:11:16 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1RAqjB-0008BH-Mx
	for 7075-quiet <at> debbugs.gnu.org; Mon, 03 Oct 2011 18:11:14 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1RAqhn-00054t-SF; Mon, 03 Oct 2011 18:09:47 -0400
From: Glenn Morris <rgm@HIDDEN>
To: 7075-quiet <at> debbugs.gnu.org
Subject: Re: bug#7075: Various problems in syntax highlighting and indentation
	in Java mode
References: <201009201448.21935.p.pogonyshev@HIDDEN>
X-Spook: HAMASMOIS CIA Commecen keyhole Ft. Knox weapons of mass
X-Ran: <%s}?p4hqq%7v52m.l8M&GEZW'P\'M^f/n?|Z^U6ggY`7yIb5|mx@Hq"zr/7a<qbP[[f.p
X-Hue: blue
X-Attribution: GM
Date: Mon, 03 Oct 2011 18:09:47 -0400
In-Reply-To: <201009201448.21935.p.pogonyshev@HIDDEN> (Paul Pogonyshev's
	message of "Mon, 20 Sep 2010 14:48:21 +0300")
Message-ID: <6g39f93exg.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 7075-quiet
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)


This is a superset of http://debbugs.gnu.org/6899 .




Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Sep 2010 11:46:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 20 07:46:57 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Oxepl-0003rD-H5
	for submit <at> 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 <p.pogonyshev@HIDDEN>) id 1Oxepj-0003r8-HC
	for submit <at> 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 <p.pogonyshev@HIDDEN>) id 1Oxes8-0004DR-D8
	for submit <at> 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 <p.pogonyshev@HIDDEN>) id 1Oxes2-0004C5-03
	for submit <at> 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@HIDDEN; Mon, 20 Sep 2010 07:49:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <p.pogonyshev@HIDDEN>) id 1Oxerl-0004AY-HG
	for bug-gnu-emacs@HIDDEN; 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 <p.pogonyshev@HIDDEN>) id 1Oxerl-00048z-C8
	for bug-gnu-emacs@HIDDEN; 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 <p.pogonyshev@HIDDEN>)
	id 1OxejM-0004gu-Ey; Mon, 20 Sep 2010 12:40:20 +0100
From: Paul Pogonyshev <p.pogonyshev@HIDDEN>
To: bug-gnu-emacs@HIDDEN
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@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> 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  <flat0103@HIDDEN>

	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);
* <Object> 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 <Object>  ham = new ArrayList <Object> ();

    List spam ();
    List <Object> egg ();
    void x (List abc);
    void x (List <Object> xyz);

    enum X
    {
        A,
        B;
    }

    enum Y implements Z
    {
        A,
            B;
    }
}




Acknowledgement sent to Paul Pogonyshev <p.pogonyshev@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7075; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.