[BLUEJ-373] CodePad refuses constant integer division by 0
If I type
{noformat} 1/0 {noformat}
in the CodePad I get the error "Error: not a statement".
{noformat}0 / 1}}}, however, is accepted.
On the other hand, if I type
{{{ new java.util.Vector().get(0) {noformat}
!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.
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 3.0.6