GNU bug report logs - #3910
Minor bug in cc-menus.el: cc-imenu-java-generic-expression does not match all Java 1.5+ function definitions.

Previous Next

Packages: emacs, cc-mode;

Reported by: Nathaniel Flath <flat0103 <at> gmail.com>

Date: Thu, 23 Jul 2009 21:55:05 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Nathaniel Flath <flat0103 <at> gmail.com>
To: quiet <at> debbugs.gnu.org
Subject: bug#3910: Minor bug in cc-menus.el: cc-imenu-java-generic-expression does not match all Java 1.5+ function definitions.
Date: Sat, 18 Jul 2009 08:27:10 -0700
[Message part 1 (text/plain, inline)]
Package: emacs,cc-mode

I was using Imenu, and noticed that it currently doesn't recognize Java
functions with either:
Generics e.g : public List<String> foo() { ...
or annotated arguments, e.g : public void foo( @NonNull bar ) {


The issue was the variable cc-imenu-java-generic-expression.

Attached is my patch which modifies this variables to accept all function
definitions and should fix this issue.


Thanks!
Nathaniel Flath
[Message part 2 (text/html, inline)]
[cc-menus.patch (text/x-patch, attachment)]

This bug report was last modified 15 years and 186 days ago.

Previous Next


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