[Cvsnt] Cvsnt case sensitive?

Brian Smith brian-l-smith at uiowa.edu
Thu Apr 25 02:57:14 BST 2002


Tony Hoyle wrote:
> Brian Smith wrote:
>
>> The Java compiler's checks on file name case are designed to allow us to
>> build platform-independent applications. For somebody new to Java, it
>> surely seems strange that "foo.java" doesn't mean the same thing as
>> "Foo.java" on Windows and Mac OS X, but the Javac compiler is just
>
>
> I had a talk with the java people here and they assure me that javac is
> not case sensitive, but that the resulting .class files are.  It would
> only be a problem if you were storing the .class files under CVS and
> somehow renaming them before commiting them in.

E:\brian\projects\>copy con foo.java
public class Foo { }
^Z
         1 file(s) copied.

E:\brian\projects\>javac foo.java
foo.java:1: class Foo is public, should be declared in a file named Foo.java
public class Foo { }
        ^
1 error

_______________________________________________
Cvsnt mailing list
Cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt



More information about the cvsnt mailing list