Uploaded image for project: 'Greenfoot'
  1. Greenfoot
  2. GREENFOOT-679

SoundExceptionHandler.handleLineUnavailableException needs to work differently

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: None
    • Sprint:
      Greenfoot FX Rewrite

      Description

      The method SoundExceptionHandler.handleLineUnavailableException runs on the debug VM, and currently it shows a Swing dialog. This is not a good idea any more as that process doesn't run any GUI. We could get the delegate it calls to send a message to the server VM (or use a special breakpoint). However, I remember that when this used to crop up regularly on Linux, the dialog was pretty annoying anyway. I propose we instead switch it to print out to the System.err console like the neighbouring handleBlahException methods.

      After this is done, GreenfootUtil.displayMessage can be removed, as can GreenfootUtilDelegate.displayMessage.

        Attachments

          Activity

            People

            • Assignee:
              hitech Hamza Hamza
              Reporter:
              nccb Neil Brown
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: