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

missing null pointer check in discarded subexpression

    XMLWordPrintable

Details

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

    Description

      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;
        }
      }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: