[backport] Align -release and -target per Scala 3#10089
Merged
lrytz merged 1 commit intoscala:2.12.xfrom Jul 28, 2022
Merged
Conversation
Member
|
... is there an easy way to keep accepting |
Contributor
Author
|
I was daunted by whatever change I made on the other PR. Possibly I am lazy, or underpaid. |
Member
|
Maybe just #10099 |
Member
|
I worry about ➜ sandbox qs -release 11
Welcome to Scala 2.12.17-20220801-023710-5ff747f (OpenJDK 64-Bit Server VM, Java 17.0.1).
Type in expressions for evaluation. Or try :help.
scala> trait T { val x = 42 }; class C extends T
defined trait T
defined class C
scala> new C
java.lang.IllegalAccessError: Update to non-static final field C.x attempted from a different method (T$_setter_$x_$eq) than the initializer method <init>
at C.T$_setter_$x_$eq(<console>:11)
at T.$init$(<console>:11)
... 30 elidedIt's probably fine on 2.13, hoping that we don't have any more bugs like #9915 in there. |
Member
Note that this was taken care of over at #10109, which makes it so that 2.12 always emits Java 8 bytecode. |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport #9982
Reminder by scala/bug#12625
Omits fixes to arg processing.
-release:8but not-release 8.The hack to allow one shot at setting deprecation on the settings incurs a limitation:
Unexpectedly, or perhaps expectedly,
resetdoes notresetenough: