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

Application doesn't get OutOfMemoryException as expected

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1.4
    • CPU:
      unknown, x86
    • OS:
      windows_95
    • Verification:
      Not verified

      Backports

        Description

        "ANDERSON" has developed a big java application.
        A lot of widgets are created.

        When the PC is loaded, memory can be exhausted.
        In this case, the application doesn't get an OutOfMemoryException as expected
        per Java API and new method will just return a null.
        The application can't handle properly this kind of situation.

        The application then crashes or from time to time, Windows 95 hangs !

        Configuration:
        ~~~~~~~~~~~~~
            JDK 1.1.2 (this is worse with 1.1)
            Windows 95 platform.


        Test Case :
        ~~~~~~~~~
            1 - Two files (Application.java, MainFrame.java) are in attachment
            2 - when you run Application, a big frame is created.
            3 - Enter le number of widgets you want to create (1000 / 2000).
            4 - repeat step 3
            
            During the widgets creation, you may run Netscape for example
            in order to stress the PC.
            Soon, program will stop with a NullPointerException.
            

          Customer really need to have a OutOfMemoryException when memory
          is exhausted. This is critical for him to handle this case.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rkarsunw Ralph Kar (Inactive)
                Reporter:
                allacour Alexandre Lacour (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: