bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7075: Various problems in syntax highlighting and indentation in Jav


From: Paul Pogonyshev
Subject: bug#7075: 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; ; )

A change log entry states that some work to support Java 5+ has been
done:

2010-07-31  Nathaniel Flath  <address@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;
    }
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]