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

Compiling a private inner class creates an anonymous class file in the wrong dir

XMLWordPrintable

    • kestrel
    • x86
    • windows_nt



      Name: pa48320 Date: 12/01/99


      Create the following source in a driectory called test:
      package test;

      public class testClass
      {
      private class Inner
      {
      }
      public testClass()
      {
      Inner in = new Inner();
      }
      }

      Compile the file from the parent directory
      javac test/testClass.java
      Notice that the file testClass$1.class is created in the current directory.
      Not sure why this file is even created since there is also a test/testClass$Inner.class created as well.

      (Review ID: 98515)

      ======================================================================

            wmaddoxsunw William Maddox (Inactive)
            pallenba Peter Allenbach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: