Illegal field name when trying to compile with a javax.swing.Action

- liangchenblue at gmail.com
Tue Jul 18 05:17:51 UTC 2023


Hi David,
Please do not ask for technical support in the development mailing list.
There's no proof that this issue is with the core libraries instead of the
Java compiler or another component.
I have already downloaded your zip, compiled the 4 files with JDK 22 (my
local dev build for another unrelated patch) javac --enable-preview
-release 22 *.java and java --enable-preview ToDoList, which just shows up
a UI without any crash. Without enable-preview, yoru code does not compile
at all for the usage of _ as an identifier.

This is most likely a problem with the compiler you are using; you have a
gpj file, which probably means you are using jGrasp. Please report this
issue to the relevant parties (i.e. the 3rd-party IDE or whatever supports
using _ as identifer without --enable-preview) instead.

Chen Liang

On Tue, Jul 18, 2023 at 11:43 AM David Alayachew <davidalayachew at gmail.com>
wrote:

> Wait, nevermind. Don't ignore. I was able to recreate this issue on the
> command line using the abovementioned JDK. Could someone come back and take
> a look at this please?
>
> Sorry for jerking everyone around here. I have multiple JDK's and got
> mixed up on which one I was using.
>
> On Sun, Jul 16, 2023 at 2:26 AM David Alayachew <davidalayachew at gmail.com>
> wrote:
>
>> Hmmmm, this one might actually be IDE specific. Please ignore.
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230718/5828d62c/attachment.htm>


More information about the core-libs-dev mailing list