It's not a big deal, because I wouldn't use such image bare bones in production. It's just a minor inconvenience.
I know this particular image might not be even maintained anymore and do not expect any fix.
Just wanted to leave this issue for potential unfortunate souls who'd stumble upon the same error in the future.
It's not a big issue, but someone might have this problem sooner or later and maybe it's good that it was to be found somewhere in the Internet.
I've recently tried to compile my JDK17 project with openjdk:17-alpine3.14 docker image.
To my surprise, it wouldn't compile
sealed classes
, which were released as a feature (not preview feature) in JDK 17.Running the following command:
ended with this error:
I created a minimal reproducible project here: openjdk:17-alpine3.14 sealed classes error.
It's not a big deal, because I wouldn't use such image bare bones in production. It's just a minor inconvenience. I know this particular image might not be even maintained anymore and do not expect any fix. Just wanted to leave this issue for potential unfortunate souls who'd stumble upon the same error in the future.
Cheers