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

'Convert Class To Java' can cause exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Lowest
    • Resolution: Done
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.5.0
    • Component/s: Greenfoot UI
    • Sprint:
      3.1.1

      Description

      The 'Convert Class To Java' menu item (from the main menu) can cause an exception when called on a class that is already Java.

      Normally, the menu item should be greyed out if the class is Java. The following sequence leaves the item enabled for a Java class:

      • select a Stride class
      • select 'Convert to Java'. Confirm.
        (Conversion happens, class remains selected; menu item remains enabled.)
      • select 'Convert to Java' again.

      Possible fix: either disable menu item after conversion, or de-select class after conversion.

        Attachments

          Activity

            People

            • Assignee:
              amjad Amjad Altadmri
              Reporter:
              mik Michael Kölling
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: