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

Previous Next

Packages: emacs, cc-mode;

Reported by: Paul Pogonyshev <p.pogonyshev <at> anakreon.net>

Date: Mon, 20 Sep 2010 11:47:01 UTC

Severity: normal

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7075 in the body.
You can then email your comments to 7075 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7075; Package emacs. (Mon, 20 Sep 2010 11:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Pogonyshev <p.pogonyshev <at> anakreon.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 20 Sep 2010 11:47:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Pogonyshev <p.pogonyshev <at> anakreon.net>
To: bug-gnu-emacs <at> gnu.org
Subject: Various problems in syntax highlighting and indentation in Java mode
Date: Mon, 20 Sep 2010 14:48:21 +0300
A change log entry states that some work to support Java 5+ has been
done:

2010-07-31  Nathaniel Flath  <flat0103 <at> gmail.com>

	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;
    }
}




Message #6 received at 7075-quiet <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 7075-quiet <at> debbugs.gnu.org
Subject: Re: bug#7075: Various problems in syntax highlighting and indentation
	in Java mode
Date: Mon, 03 Oct 2011 18:09:47 -0400
This is a superset of http://debbugs.gnu.org/6899 .




Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Sun, 06 Oct 2019 11:51:02 GMT) Full text and rfc822 format available.

Notification sent to Paul Pogonyshev <p.pogonyshev <at> anakreon.net>:
bug acknowledged by developer. (Sun, 06 Oct 2019 11:51:02 GMT) Full text and rfc822 format available.

Message #11 received at 7075-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Paul Pogonyshev <p.pogonyshev <at> anakreon.net>
Cc: 7075-done <at> debbugs.gnu.org
Subject: Re: bug#7075: Various problems in syntax highlighting and indentation
 in Java mode
Date: Sun, 6 Oct 2019 13:49:49 +0200
Paul Pogonyshev <p.pogonyshev <at> anakreon.net> writes:

> A change log entry states that some work to support Java 5+ has been
> done:
>
> 2010-07-31  Nathaniel Flath  <flat0103 <at> gmail.com>
>
>     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.

> * <Object> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 03 Nov 2019 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 232 days ago.

Previous Next


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