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

OutOfMemoryError object should contain a more verbose reason for 1.4.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.4.2_12
    • core-svc
    • None
    • generic
    • generic

      Since 1.5 the OutOfMemoryError object contains a descriptive reason:



      try
              {
                  OOM(); //too much memory is being allocated in here
              }
              catch (OutOfMemoryError oome)
              {
                  System.err.println(oome);
                  Runtime.getRuntime().halt(1);
              }


      1.5 gives this:

      java.lang.OutOfMemoryError: Java heap space

      while for 1.4.2 the same is less informative:

      java.lang.OutOfMemoryError


      It would be nice to backport the 1.5 functionality to 1.4.2 if it's
      not too complex.

            Unassigned Unassigned
            tviessma Thomas Viessmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: