OutOfMemoryError object should contain a more verbose reason for 1.4.2

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 1.4.2_12
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: