From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#24671: java-mode confused by non-trivial generics Date: 27 Jul 2019 14:14:24 -0000 Organization: muc.de e.V. Message-ID: <20190727141424.74896.qmail@mail.muc.de> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="123242"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.2-RELEASE-p9 (amd64)) Cc: 24671@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 27 17:07:18 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 1hrOI1-000VrL-44 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 17:07:17 +0200 Original-Received: from localhost ([::1]:46138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrOI0-0007ZH-1T for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 11:07:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53083) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrOHx-0007Ys-DY for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 11:07:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrOHs-0002kd-Bb for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 11:07:13 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36363) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrOHm-0002er-62 for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 11:07:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrOHl-0003jR-VZ for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 11:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2019 15:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24671 X-GNU-PR-Package: emacs Original-Received: via spool by 24671-submit@debbugs.gnu.org id=B24671.156424001814334 (code B ref 24671); Sat, 27 Jul 2019 15:07:01 +0000 Original-Received: (at 24671) by debbugs.gnu.org; 27 Jul 2019 15:06:58 +0000 Original-Received: from localhost ([127.0.0.1]:45184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrOHg-0003j6-E2 for submit@debbugs.gnu.org; Sat, 27 Jul 2019 11:06:58 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:23968 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hrOHe-0003iy-Mo for 24671@debbugs.gnu.org; Sat, 27 Jul 2019 11:06:55 -0400 Original-Received: (qmail 74897 invoked by uid 3782); 27 Jul 2019 14:14:24 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug 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:163882 Archived-At: Hello, Lars In article you wrote: > Daniel Colascione writes: >> For the following code >> >> class Foo { >> public List>> getBars() { >> return null; >> } >> } >> >> I expect the `<' and `>' to be assigned paren syntax, but they are not. Emacs >> is latest master. > When I try this in Emacs 27, the < and > characters are fontied the same > way as the parentheses in the example, so I'm guessing that this has > been fixed and is closing this bug report. If you're still seeing this > problem, please reopen. I think the bug should be reopened: it was about the syntax on < and > rather than the fontification. If you put point in front of any of the . This doesn't happen in the current scenario because the closing >s, written without intervening spaces, get confused with the Java shift right operator ">>>". If you insert a space into that triplet, the syntax comes back again. This will be easy to fix. > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany).