• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javac changes camelCase to lower case

 
Marilyn de Queiroz
Sheriff
Posts: 9062
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I start with Conductor.java (which has an inneer class named Counter) and I end up with conductor.class and conductor$counter.class

It can't be a property of the drive because the java classes are camelCase and they're on the same drive.

I just ran the following command:
javac -verbose -d M:\sandbox\ETL\xtract\adm\common\classes -sourcepath M:\sandbox\ETL\xtract\adm\common\src M:\sandbox\ETL\xtract\adm\common\src\com\ibm\esmrt\adm\common\Conductor.java

Using the verbose flag, I see

but when I list the files (using either cygwin 'ls' or windows "dir" commands), I see
-rw-r--r-- 1 marilynd mkpasswd 744 Apr 9 00:57 conductor$counter.class
-rw-r--r-- 1 marilynd mkpasswd 2863 Apr 9 00:57 conductor.class

or

04/09/2008 01:03 AM 744 conductor$counter.class
04/09/2008 01:03 AM 2,863 conductor.class

Really weird. Then when the next part of the script runs, it can't find Conductor.class
 
Marilyn de Queiroz
Sheriff
Posts: 9062
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It turns out that the issue is with the MVFS filesystem on Windows. Its default configuration on Windows ... Native Windows file systems preserve case on file-creation operations. The MVFS is configured to convert file names to lowercase on Windows.

It doesn't make sense to me, but there it is.
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12102
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i once tried to do a build on my windows box, and everything failed. why? because all of my .java files had been converted to all lower-case. every single one.

fortunately i had not made to many changes, so doing a fresh pull to a clean directory didn't cause me to loose much, but it was one of the strangest things I've ever seen.

I also have a witness or two, if you don't believe me.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic