[BLUEJ-496] BlueJ parser rejects parenthesized condition expression for trinary-?: operator
I have a file which compiles fine and can be used but the GUI of BlueJ puts a red warning symbol on it which pops up the error message: "This class cannot currently be parsed" It appears to be linked with the use of "(boolean) ? :"
The relevant code is: StringBuilder sb = new StringBuilder(); sb.append((isFilled) ? "yes": "no"); If I change it to use a proper IF statement the error goes away.
There is no indication in the editor that anything is wrong, syntax colouring is fine and as I say, the file compiles and can be used with out problems
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.1.1