[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 Asdf.java
public class Aoeu
{
public static void main(String[] args)
{
System.out.println("Yo");
}
}
nyap:address@hidden:~/proj/asdf> javac -classpath .
Asdf.java
Asdf.java:1: class Aoeu is public, should be declared
in a file named Aoeu.java
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".
Noel
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com
- Re: renames under CVS, (continued)
- Re: renames under CVS, Noel Yap, 2002/02/27
- RE: renames under CVS, Noel Yap, 2002/02/26
- RE: renames under CVS, Greg A. Woods, 2002/02/27
- RE: renames under CVS, Paul Sander, 2002/02/27
- RE: renames under CVS, Noel Yap, 2002/02/27
- RE: renames under CVS, Greg A. Woods, 2002/02/27
- RE: renames under CVS, Greg A. Woods, 2002/02/27
- RE: renames under CVS, Noel Yap, 2002/02/27
- RE: renames under CVS, Greg A. Woods, 2002/02/27
Re: renames under CVS, Mark A. Flacy, 2002/02/28
- OT: Java filenames and classes,
Noel Yap <=