[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Java complaint Was: Re: Environment variables for Debian (e.g. JAVA_HOME, etc)



* Colin Watson:

> On Fri, Sep 03, 2004 at 02:30:40AM -0400, Justin Pryzby wrote:
>> On Fri, Sep 03, 2004 at 04:10:09PM +1000, Matthew Palmer wrote:
>> > And people wonder why I don't like Java...
>> Can someone explain to me why "java foo.class" has to fail with an
>> obscure error?  (You're not suppoed to specify .class)  Jeez.
>
> I think it's probably something to do with '.' being the namespace
> separator, and you could in theory have wanted foo/class.class ... but I
> agree that a special-case check would alleviate a lot of confusion.

While SomeClass.class is indeed a valid expression, it refers to the
class object of an instance.  But as far as I can tell,
SomeClass.class can never denote a class because "class" is a keyword.



Reply to: