Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-373

CodePad refuses constant integer division by 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: 3.0.5
    • Fix Version/s: 3.0.6
    • Component/s: CodePad

      Description

      If I type

      1/0
      

      in the CodePad I get the error "Error: not a statement".

      0 / 1}}}, however, is accepted.
      
      On the other hand, if I type
      
      {{{
      new java.util.Vector().get(0)
      

      !CodePad will correctly report the exception.

      It should do the same for 0 / 1, reporting an ArithmeticException rather than complaining that it has encountered a syntax error.

        Attachments

          Activity

            People

            • Assignee:
              davmac Davin McCall
              Reporter:
              external External via trac
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: