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

Runtime exception in static initializer does not report errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1.6
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.1.6
    • CPU:
      x86
    • OS:
      windows_nt
    • Verification:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: