Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39439

Re: Character.isIdentifierIgnorable

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Character.isIdentifierIgnorable
Date 2020-04-24 20:29 -0400
Organization Aioe.org NNTP Server
Message-ID <r80097$r5a$1@gioia.aioe.org> (permalink)
References <r7vqa2$ekn$1@dont-email.me> <r7vqo0$15g0$1@gioia.aioe.org> <r7vv8t$8a7$1@dont-email.me>

Show all headers | View raw


On 4/24/2020 8:12 PM, Jeff Higgins wrote:
> On 4/24/20 6:54 PM, Arne Vajhøj wrote:
>>>
>>> For instance I can do:
>>>
>>> class IdentifierTest {
>>>    class _\u0001 {}
>>>    class _\u0001\u0001 {}
>>> }
>>>
>>> and javac doesn't complain
> 
>>
>> My javac complains.
>>
>> :-)

> Well, I guess that is what I get for not doing what I said.
> 
> I used the Eclipse Java compiler to compile my example above.

> When I compile and run in Eclipse using OpenJDK 8 and 11 :
> 
> class Z {
>    public static void main(String[] args) {
>      class _\u0001{String z = "z";}
>      class _\u0001\u0001{String z = "zz";}
>      _\u0001 Z = new _\u0001();
>      _\u0001\u0001 ZZ = new _\u0001\u0001();
>      System.out.println(Z.z + ZZ.z);
>    }
> }
> prints "zzz"

With Eclipse 2019-12 and Java 8 I get a weird build error
about illegal char.

> That's worrisome!

I think we are in the far out corners of the language.

Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-24 18:46 -0400
  Re: Character.isIdentifierIgnorable Arne Vajhøj <arne@vajhoej.dk> - 2020-04-24 18:54 -0400
    Re: Character.isIdentifierIgnorable Martin Gregorie <martin@mydomain.invalid> - 2020-04-24 23:07 +0000
    Re: Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-24 20:12 -0400
      Re: Character.isIdentifierIgnorable Arne Vajhøj <arne@vajhoej.dk> - 2020-04-24 20:29 -0400
        Re: Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-24 20:37 -0400
          Re: Character.isIdentifierIgnorable Arne Vajhøj <arne@vajhoej.dk> - 2020-04-24 22:24 -0400
            Re: Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-24 23:36 -0400
              Re: Character.isIdentifierIgnorable Arne Vajhøj <arne@vajhoej.dk> - 2020-04-25 12:57 -0400
                Re: Character.isIdentifierIgnorable Arne Vajhøj <arne@vajhoej.dk> - 2020-04-25 13:01 -0400
                Re: Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-25 13:39 -0400
                Re: Character.isIdentifierIgnorable Arne Vajhøj <arne@vajhoej.dk> - 2020-04-25 13:51 -0400
                Re: Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-25 14:36 -0400
            Re: Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-24 23:41 -0400
    Re: Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-24 20:25 -0400
      Re: Character.isIdentifierIgnorable Arne Vajhøj <arne@vajhoej.dk> - 2020-04-24 20:32 -0400
        Re: Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-24 20:42 -0400
          Re: Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-25 09:53 -0400
            Re: Character.isIdentifierIgnorable Arne Vajhøj <arne@vajhoej.dk> - 2020-04-25 12:55 -0400
              Re: Character.isIdentifierIgnorable Jeff Higgins <invalid@invalid.org> - 2020-04-25 13:43 -0400

csiph-web