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

if any class in a nest has an error, none should generate code.

XMLWordPrintable

    • 1.2beta4
    • generic
    • solaris_2.5.1
    • Not verified

      Currently, if an inner class has an error, the outer class will still
      generate code:

      public class Oops {
          class inner {
      inner() {
      System.out.println(method());
      }

      int method() {
      return "hello";
      }
          }

          public static void main(String[] args) {
      new Oops().new inner();
          }
      }

      Compiling this yields Oops.class, but no Oops$inner.class.

      This means that users of Makefiles need to list all inner classes as targets to ensure that they have an up-to-date project.

      It would be nice if the main .class file could always be assumed to proxy for the rest of the nest.

            tturnidgsunw Todd Turnidge (Inactive)
            tturnidgsunw Todd Turnidge (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: