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

missing null pointer check in discarded subexpression

XMLWordPrintable

    • hopper
    • generic, x86
    • generic, solaris_7, windows_98
    • Verified

      s.i should fail in the program below because s is null.

      class Foo {
        static Foo s = null;
        Foo i;
        public static void main(String[] args) {
          s.i.s = null;
        }
      }

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: