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

instanceof should not cause class loading

XMLWordPrintable

    • beta2
    • x86
    • windows_nt

      Currently using the instanceof operator can cause a class to be loaded. The runtime could check to see if the class was loaded, and if it was not the runtime would know there were no instances, and thus the object in question couldn't be an instance of that class.

      Phil Milne observed this problem where many extra Swing classes were loaded due to an instanceof check. Fixing this could help footprint/startup time.

            foliversunw Fred Oliver (Inactive)
            stewilso Steve Wilson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: