[BLUEJ-372] CodePad rejects some syntactically valid expressions that have non-void types
To reproduce the problem:
- Create a Random object in the CodePad.
- Drag it to the object bench (giving it a name)
- In the CodePad use the name given in the previous step to invoke a method, say getBoolean() as random2.getBoolean() for instance. This works fine, but....
- In the CodePad use the name given to the Random object on the object bench to invoke the getClass() method inherited from Object, e.g., random2.getClass(). CodePad complains "Error ";" expected". However, getClass() is not void --- it returns a Class object --- so this should not provoke a syntax error. Other methods inherited from Object, e.g., toString() don't provoke an error.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.0.6