processing/processing

Parser errors when trying to cast ints to booleans

Open

#4,646 opened on 2016年9月5日

GitHub で見る
 (3 comments) (0 reactions) (1 assignee)Java (1,540 forks)batch import
help wantedpreprocessor

Repository metrics

Stars
 (6,431 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

While running

boolean b = (boolean) 1;

gives the correct error message of "Cannot cast from int to boolean" the following erroneous statement:

boolean c = (boolean) 1 || (boolean) 1;

throws an unhandled exception in the editor (with the above error message), and on running a weird "23)" message.

コントリビューターガイド