[Top][All Lists]

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

OT: Java filenames and classes

From: Noel Yap
Subject: OT: Java filenames and classes
Date: Thu, 28 Feb 2002 20:43:24 -0800 (PST)

--- "Mark A. Flacy" <address@hidden> wrote:
> >>>>> "Noel" == Noel Yap <address@hidden>
> writes:
> Noel> 
> Noel> Also, search tools will be useless if this
> programmer were
> Noel> programming in Java since the class names
> would be as meaningless as
> Noel> the filenames.  I suppose he then could start
> relying heavily on
> Noel> comments.
> There is no requirement for the source file name to
> be remotely related to
> the name of the class(es) contained within it.
> There *is* convention and it *does* make life easier
> when you do so, but it
> is *not* a requirement.  jtags will work in either
> environment.

The following output suggests otherwise:

nyap:address@hidden:~/proj/asdf> cat
public class Aoeu
        public static void main(String[] args)
nyap:address@hidden:~/proj/asdf> javac -classpath . class Aoeu is public, should be declared
in a file named
public class Aoeu
1 error

Am I missing something here?  Is there a flag to make
this error into a warning?

If there isn't, I think the "should" in the warning
should be changed to "must".


Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]