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

can an assertion in a nested class cause the outermost class to be init'd?

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.4.2
    • Fix Version/s: 5.0
    • Component/s: specification
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      rc
    • CPU:
      generic, x86
    • OS:
      linux_redhat_8.0, solaris_8

      Description

      Is an assertion in a nested class, such as

      assert true;

      one of the contexts that may cause the outermost class to be initialied?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjb Josh Bloch
                Reporter:
                gafter Neal Gafter
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: