Comments (3)
False alarm, it does accept 21
as long as your JDK is also at least 21
; which makes total sense.
I was running on a 17
JDK when I tested this, which explains why it only shown 17
as the maximum supported target.
Having said that, IMHO, the error message was really misleading.
Something along the lines of
While
21
is supported by the compiler, your current environment is running in version17
, thus21
is an invalid target.
Or something similar (English is not my first language, so the redaction can probably be improved).
This issue is no longer a "Bug report" but rather a "Error/Warning message report".
from scala3.
I was fooled by this as well. I agree the error message is worth improving.
from scala3.
also -java-output-version:help
is not supported
from scala3.
Related Issues (20)
- type "leakage" with transparent methods on opaque types HOT 6
- Regression in shapless2 scala 3 port due to new specced match types HOT 3
- Error message in log when compiling: BufferStrategyPaintManager$ with Java 17+ HOT 2
- Type alias does not retain name of Named Tuple HOT 1
- Regression: PartialFunction.applyOrElse executed despite being defined HOT 1
- `compileTimeOnly` results in error message for overridden method with abstract return type
- by name implicits results in compiler crash unresolved symbols: value $_lazy_implicit_$1
- Passing opaque type through two wrappers compiled in another module causes the type to lose its identity and opaqueness
- Value discard warning in one-limbed if
- Is it possible to add or improve the syntax for consecutively defined variables and consecutive assignments? HOT 1
- Operations on NamedTuples do not work with singleton types due to match type refusing to reduce
- Function Arguments of named tuples can't infer param types despite explicit type HOT 1
- Pattern term of CaseDef is an internal ClassInfo that crashes when matched on HOT 1
- Nested similar lamdas result in duplicate method in ClassDef
- Error does not show why rewrite to assignment did not work out
- Reference page: show pages "more details" in the table of contents
- Scala-docs: incorrect link on source file
- Union type inferred unexpectedly
- Regression in Scala 3.5.0-RC1 related to match types in `using` parameters HOT 1
- Symbol.asQuotes doesn't work as advertised
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala3.