stanislavkozlovski opened a new issue, #1247:
URL: https://github.com/apache/polaris/issues/1247
### Describe the bug
I was running through the quickstart and trying to build the project with
Java 21, but the Jetbrains JVM. Snippet from `gradlew -version`:
```
Launcher JVM: 21 (JetBrains s.r.o. 21+9-b126.4)
Daemon JVM:
/Users/stanislavkozlovski/Library/Java/JavaVirtualMachines/jbr-21/Contents/Home
(no JDK specified, using current Java home)
```
The error I got was:
```
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':polaris-service-common:compileJava'.
> Compilation failed; see the compiler output below.
/Users/stanislavkozlovski/tmp/polaris-apache-polaris-0.9.0-incubating/service/common/src/main/java/org/apache/polaris/service/admin/PolarisServiceImpl.java:524:
error: patterns in switch statements are a preview feature and are disabled by
default.
case ViewGrant viewGrant:
^
(use --enable-preview to enable patterns in switch statements)
3 errors
```
I tried some hacks in build.gradle to run with `--enable-preview` but would
eventually hit other issues
### To Reproduce
1. Install Jetbrains Runtime 21
(https://github.com/JetBrains/JetBrainsRuntime)
2. Run through quickstart https://polaris.apache.org/in-dev/0.9.0/quickstart/
### Actual Behavior
Hits this error:
```
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':polaris-service-common:compileJava'.
> Compilation failed; see the compiler output below.
/Users/stanislavkozlovski/tmp/polaris-apache-polaris-0.9.0-incubating/service/common/src/main/java/org/apache/polaris/service/admin/PolarisServiceImpl.java:524:
error: patterns in switch statements are a preview feature and are disabled by
default.
case ViewGrant viewGrant:
^
(use --enable-preview to enable patterns in switch statements)
3 errors
```
### Expected Behavior
Polaris should build normally
### Additional context
_No response_
### System information
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]