Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java: records are not supported in -source 15

I have problem with records in Java, currently added in repo. I do get a problem:

"java: records are not supported in -source 15 (use -source 16 or higher to enable records)"

I have changed language level to 15(Preview), but that does not help. Looking for a solution to compile this.

enter image description here

like image 216
Bartek Avatar asked Sep 13 '25 21:09

Bartek


1 Answers

Solved, had to change Java version in all the places.

enter image description here

like image 62
Bartek Avatar answered Sep 15 '25 11:09

Bartek