Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7088636

error compiling java file with same class(different case) in a file

    XMLWordPrintable

Details

    • x86
    • windows_7

    Description

      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 ----------

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: