Runtime exception in static initializer does not report errors

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.1.6
    • Affects Version/s: 1.1
    • Component/s: hotspot
    • 1.1.6
    • x86
    • windows_nt
    • Not verified



        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 - ###@###.###
        ======================================================================

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: