Duplicate :
|
|
Relates :
|
FULL PRODUCT VERSION : ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.1.7600] A DESCRIPTION OF THE PROBLEM : public class rabbit{ public static void main(String[] args){ } } class Rabbit1{ int i; char c; } compile it only get "Rabbit.class" without rabbit.class. It works well in Linux, so I believe it's a bug. REGRESSION. Last worked in version 6u26 STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1.write in "rabbit.java" with public class rabbit{ public static void main(String[] args){ Rabbit t1 = new Rabbit(); Rabbit t2 = new Rabbit(); t1.i=9; t2.c='x'; System.out.println("i="+t1.i); System.out.println(t2.c); } } class Rabbit1{ int i; char c; } 2. javac rabbit.java EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - "rabbit.class" and "Rabbit.class" are Generated ACTUAL - only "Rabbit.class" is Generated REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- "rabbit.java" public class rabbit{ public static void main(String[] args){ Rabbit t1 = new Rabbit(); Rabbit t2 = new Rabbit(); t1.i=9; t2.c='x'; System.out.println("i="+t1.i); System.out.println(t2.c); } } class Rabbit1{ int i; char c; } ---------- END SOURCE ----------