Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39439
| Path | csiph.com!aioe.org!.POSTED.O5hsyUvK01te0L/SZurVSQ.user.gioia.aioe.org!not-for-mail |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Character.isIdentifierIgnorable |
| Date | Fri, 24 Apr 2020 20:29:26 -0400 |
| Organization | Aioe.org NNTP Server |
| Lines | 42 |
| 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> |
| NNTP-Posting-Host | O5hsyUvK01te0L/SZurVSQ.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Content-Language | en-US |
| Xref | csiph.com comp.lang.java.programmer:39439 |
Show key headers only | 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
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