processing / processing/processing4
Add support for Java 14 switch expressions
オープン
@AhmedMagedC がすでに取り組んでいます。
2025年5月13日 から。
enhancement
help wanted
preprocessor
- 主要言語
- Java
- スター
- 494
- フォーク
- 183
- 平均マージ
- 4時間 39分
- マージ済み PR(30日)
- 3
説明
Created by: Santarii
Description
Switch expressions were added in Java 14, but produce a strange compile time error in Processing which is on Java 17.0.2.
Expected Behavior
Switch expressions should compile.
Current Behavior
They do not compile, and the first line in my exam,ple produces an error of "Syntax Error - Missing name or ; near ' int b = switch'?".
Steps to Reproduce
void setup() {
int a = 0;
int b = switch(a) {
case 0 -> 0;
default -> 1;
};
exit();
}
This switch expression runs fine in Eclipse and online IDEs that are in Java 17, but not in Processing. Other language features that are newer than switch expressions do work correctly.
Your Environment
- Processing version: 4.0b6.
- Operating System and OS version: Windows 10 Home 64-bit. 10.0.19043 Build 19043.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。