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

missing null pointer check in discarded subexpression

    Details

    • Subcomponent:
    • Resolved In Build:
      hopper
    • CPU:
      generic, x86
    • OS:
      generic, solaris_7, windows_98
    • Verification:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: