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


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

Re: "$" in class names reserved [was: Re: Really "BIG" class name wanted]

Date 2011-08-02 02:33 -0400
From Wayne <nospam@all.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: "$" in class names reserved [was: Re: Really "BIG" class name wanted]
References (1 earlier) <j0rok2$t9e$1@dont-email.me> <environment-20110728170428@ram.dialup.fu-berlin.de> <00f3e49b-fb85-463b-bc8f-9de92c6b9445@fq4g2000vbb.googlegroups.com> <name-20110729144251@ram.dialup.fu-berlin.de> <0cbc4186-9ec6-4fcc-9c31-eb6f4668704b@glegroupsg2000goo.googlegroups.com>
Message-ID <4e379a3e$0$30048$9a6e19ea@unlimited.newshosting.com> (permalink)
Organization Newshosting.com - Highest quality at a great price! www.newshosting.com

Show all headers | View raw


On 8/1/2011 5:22 PM, Lew wrote:
> "$" is generally (but not AFAIK mandatorily) reserved for internal class names
> such as those generated for nested / inner classes.

It should be reserved but you're right, it isn't.  Consider this:

<file A.java>
class A {
  class B {}
}
</file>

<file A$B.java>
class A$B {}
</file>

If you compile the two separately, whichever compiles
last overwrites the previous A$B.class.  If you try to
compile them both at once, you get this:

C:\Temp>javac A.java A$B.java
A$B.java:1: duplicate class: A.B
class A$B {}
^
1 error

-- 
Wayne

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


Thread

Really "BIG" class name wanted Ross <rossclement@gmail.com> - 2011-07-28 03:20 -0700
  Re: Really "BIG" class name wanted Patricia Shanahan <pats@acm.org> - 2011-07-28 03:38 -0700
  Re: Really "BIG" class name wanted Roedy Green <see_website@mindprod.com.invalid> - 2011-07-28 04:01 -0700
  Re: Really "BIG" class name wanted markspace <-@.> - 2011-07-28 06:35 -0700
    Re: Really "BIG" class name wanted Ross <rossclement@gmail.com> - 2011-07-29 05:28 -0700
      Re: Really "BIG" class name wanted markspace <-@.> - 2011-07-29 06:36 -0700
      Re: Really "BIG" class name wanted Robert Klemme <shortcutter@googlemail.com> - 2011-07-29 15:55 +0200
      Re: Really "BIG" class name wanted Tom Anderson <twic@urchin.earth.li> - 2011-07-29 14:56 +0100
      Re: Really "BIG" class name wanted Tom Anderson <twic@urchin.earth.li> - 2011-07-29 15:08 +0100
      Re: Really "BIG" class name wanted Silvio <silvio@moc.com> - 2011-07-29 17:32 +0200
        Re: Really "BIG" class name wanted Silvio <silvio@moc.com> - 2011-08-01 13:47 +0200
      Re: Really "BIG" class name wanted lewbloch <lewbloch@gmail.com> - 2011-07-29 09:25 -0700
      Re: Really "BIG" class name wanted lewbloch <lewbloch@gmail.com> - 2011-07-29 23:08 -0700
        Re: Really "BIG" class name wanted Martin Gregorie <martin@address-in-sig.invalid> - 2011-07-30 11:24 +0000
          Re: Really "BIG" class name wanted Patricia Shanahan <pats@acm.org> - 2011-07-30 06:10 -0700
            Re: Really "BIG" class name wanted Gene Wirchenko <genew@ocis.net> - 2011-08-01 16:22 -0700
      Re: Really "BIG" class name wanted Lew <lewbloch@gmail.com> - 2011-07-31 02:29 -0700
      Re: Really "BIG" class name wanted Lew <lewbloch@gmail.com> - 2011-08-01 14:22 -0700
        Re: "$" in class names reserved [was: Re: Really "BIG" class name wanted] Wayne <nospam@all.invalid> - 2011-08-02 02:33 -0400
    Re: Really "BIG" class name wanted Ross <rossclement@gmail.com> - 2011-07-29 05:37 -0700
      Re: Really "BIG" class name wanted Bent C Dalager <bcd@pvv.ntnu.no> - 2011-07-30 22:42 +0000
        Re: Really "BIG" class name wanted thoolen <thoolen@tholenbot.thorium> - 2011-07-30 23:38 -0400
  Re: Really "BIG" class name wanted markspace <-@.> - 2011-07-31 20:32 -0700
  Re: Really "BIG" class name wanted Silvio <silvio@moc.com> - 2011-08-01 13:54 +0200

csiph-web