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

Runtime exception in static initializer does not report errors

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Fixed
    • 1.1
    • 1.1.6
    • hotspot
    • 1.1.6
    • x86
    • windows_nt
    • Not verified

    Backports

      Description



        Name: sgC58550 Date: 03/19/97


        public class TestBug {
        static String msg = null;
        static {
        Object o = null;
        o.toString();
        msg = "Bug Fixed";
        }
        public String toString () {
        if (msg == null)
        return super.toString() + "Bug Not Fixed";
        else
        return super.toString() + "Bug Fixed";
        }
        public static void main (String args[])
        {
        TestBug t = new TestBug();
        System.out.println(t.toString());
        }
        }

        company - WorldStreet Corporation , email - ###@###.###
        ======================================================================

        Attachments

          Issue Links

            Activity

              People

                sliangsunw Sheng Liang (Inactive)
                sgoodsunw Sheri Good (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: