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

A class name Con is never understood by the java compiler

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      itanium
    • OS:
      windows_2000

      Description

      A DESCRIPTION OF THE REQUEST :
      I developed a smaple program having a subclass and if the subclass was named Con the java compiler never compiles the file, instead it spits the bytecode of the program itself in advance . I have to get a .class for atleast the used parent class.


      JUSTIFICATION :
      Suppose if any one tries to Develop as Connection class in JDBC some may try to use a short name as Con (say) . At that juncture the compiler has to help the programmer telling this iis either a bug or a thing which is never allowed.

      EXPECTED -
      i would like to see a .class in the name of the parent class wihich is not named as Con.
      ACTUAL -
      I cannot see a Con.class file generated

      ---------- BEGIN SOURCE ----------
      class NewVersion
      {

          public static void main(String[] args)
      {
                    new NewVersion();
                    Con c=new Con();
      c.myprint();
      }
      }


      class Con extends NewVersion
      {
      public void myprint()
      {
      System.out.println("Its Inside Stuff in Java");
      }

      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      it is the matter of the complier which finds out the available class name and stops compiler . May be the the compiler has to be fine tune or the microsoft(useless) Naming convention in its O.S has to be changed
      ###@###.### 2004-12-16 16:01:47 GMT

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ahe Peter Ahe
              Reporter:
              gmanwanisunw Girish Manwani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: