-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge 2.12.x into 2.13.x [ci: last-only] #9206
Merged
Merged
Conversation
This file contains 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
Member
dwijnand
commented
Sep 14, 2020
Compiling the enclosed test case with `-Xdev` told me: ``` warning: !!! base trait Serializable not found in basetypes of object Person. This might indicate incorrect caching of TypeRef#parents. ``` Indeed, the `ModuleTypeRef` associated with the newly seralizable module class had cached the base type sequence prior to the addition of `Serializable`. A more serious examination of how we add this parent would be worthwhile, but for now I'll just do a bandaid job by invalidating internal caches of the `ModuleTypeRef`.
We need to favour keys from the left that equivalent (but ne), while favouring values from the right. (cherry picked from commit abd82a2)
….12.x [backport] Disable all reusable instances in runtime reflection
[nomerge] small cleanups
…ntent of the previous array is to be copied into the new Array Use clone when the array is not changing length Maintain empty Arrays in the Array object, and use them where possible Maintain empty WrappedArrays in WrappedArrays object and use where possible
Backport of PR 9106. IteratorTest.`flatMap is memory efficient in previous element` was copied from 2.13, as the 2.12 version was wrong (started failing with the fixed `assertThrows`). The change in AssertThrowsTest is backported from 4eab5e0.
Bump to Scala 2.12.12
(cherry picked from commit 6acc8ff)
Too slow to leave around. (cherry picked from commit 9b26381)
[backport] Stabilize order of synthetic modules in enclosing class decls
Previous version ought to have awaited the first completed of, but using the parasitic context should suffice; we check that with an assertion.
[backport] bring AssertUtil fixes to 2.12
* copy the bugfix for scala/bug#10035 to the 2.12.x branch, as-is
…port Don't recurse without bound in outerPath - 2.12 reloaded
Under -Ydelambdafy:method-ref, when a lambda is just invoking a method (i.e. is "just a method reference"), such as `foo()` or `x => bar(x)`, then rather than emit an `invokedynamic` to a helper method that invokes the target method, emit an `invokedynamic` to the target method directly.
Emit method reference lambdas without helper method
Add a few missing exclusions, and edit some existing config that was out of date since the SBT 1.x upgrade. (cherry picked from commit 7091852)
* `restarr`: sets `scalaVersion` to the version in `/buildcharacter.properties` or the given arg. * `restarrFull`: publishes locally (without optimizing) & then sets the new `scalaVersion`.
Very handy if you re-STARR and un-STARR a lot, and/or if you're switching between the 2.12.x and 2.13.x branches, at the cost of extra output on every build load - a good trade, IMO.
As tuples (e.g. Tuple2) are case classes, for which `enumerateSubtypes` returns `List(List(tp))` therefore making it "checkable", any tuple type was accidentally always passing (or at least it has since that `isCase` branch was added to `enumerateSubtypes`). This was leading to false positives in the exhaustivity checking, as a tuple of non-sealed types was being deemed inexhaustive with a wildcard `(_, _)` counter-example.
remove unused import
* commit 'e32b224ee1': Emit method reference lambdas without helper method Add same changes from the PR scala#7178 [backport] Exchange stack for Stack in assertNotReachable [backport] Avoid race in test for firstCompletedOf Remove exploratory assertions Stabilize order of synthetic modules in enclosing class decls Bump to Scala 2.12.12 [backport] bring AssertUtil fixes to 2.12 Add a comment to HashMap.castToThat [nomerge] small cleanups [backport] Disable all reusable instances in runtime reflection [backport] Rework recent, buggy change to immutable.TreeMap
* commit 'c26463c096': Add version/scalaVersion info to onLoadMessage Add restarr/restarrFull custom commands
* commit '5997a61e30': Map ++ without CBF should use the same optimised path as ++ with CBF also optimise for small map addition remove unused import
* commit 'aab332980d': remove unneeded conversion
* commit '4a26288168': Improve IntelliJ project configuration
* commit '3c16136033': Check all bindings exhaustively, e.g. tuples components Refactor prior fix to module class symbol cache invalidation Heed warning about cache invalidation after making object Serializable
* commit '529f089f25': Fix -Ydelambdafy:method-ref on a Java annotation Drop flagsfile support, port test suite Kill pos checkfiles [nomerge][2.12] Welcome back Partest! simplify mima exceptions review feedback - use the ClassTag to hold the empty Arrays and WrappedArray simplify signature Use java.util.Arrays.copyOf to extend or contract arrays, when the content of the previous array is to be copied into the new Array
* commit '490e3e342a': Make async compiler output deterministic
* commit '8e73c8c093': [nomerge] no longer build external partest module in release scripts don't box primitive values to call static methods on java.lang.Double/Float/Integer etc don't box primitives to call hashCode/toString copy with trees with side effect add tests to verify no boxing
* commit 'bde271aae6': Drop bug compatibility with Java privacy of inner classes Deterministic InnerClass attribute under joint/separate compilation Refactor DeterminismTest to expose internals as an app. Handle NestedAnnotArg from Java sources Cleanup JavaParser.annotation Restore binary compatibility for doc.Settings Fix exhaustivity uncheckableType's logic for tuples
* commit 'dc511c34a8': Fix NPE regression in immutable.HashMap.merge Add scalap to partest's IJ config
@retronym mind looking at |
... need to last-mile the flagsfile work in 2.12.x...
Was getting the following in CI, because test/files/neg/t10019-neg.obj wasn't being created. The reason it was even going down this route was because the fatal warnings option was still in a flags file (fix in the previous commit). [error] Uncaught exception when running partest: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Error running /home/travis/build/scala/scala/test/files/neg/t10019.scala [error] sbt.ForkMain$ForkError: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Error running /home/travis/build/scala/scala/test/files/neg/t10019.scala [error] at java.util.concurrent.FutureTask.report(FutureTask.java:122) [error] at java.util.concurrent.FutureTask.get(FutureTask.java:192) [error] at scala.tools.partest.nest.AbstractRunner.runTestsForFiles(AbstractRunner.scala:353) [error] at scala.tools.partest.nest.AbstractRunner.$anonfun$run$17(AbstractRunner.scala:254) [error] at scala.tools.partest.nest.AbstractRunner.$anonfun$run$17$adapted(AbstractRunner.scala:250) [error] at scala.collection.ArrayOps$WithFilter.foreach(ArrayOps.scala:73) [error] at scala.tools.partest.nest.AbstractRunner.$anonfun$run$15(AbstractRunner.scala:250) [error] at scala.tools.partest.nest.AbstractRunner.run(AbstractRunner.scala:250) [error] at scala.tools.partest.sbt.PartestTask.execute(Framework.scala:55) [error] at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:304) [error] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [error] at java.lang.Thread.run(Thread.java:748) [error] Caused by: sbt.ForkMain$ForkError: java.lang.RuntimeException: Error running /home/travis/build/scala/scala/test/files/neg/t10019.scala [error] at scala.tools.partest.nest.AbstractRunner.liftedTree1$1(AbstractRunner.scala:312) [error] at scala.tools.partest.nest.AbstractRunner.runTest(AbstractRunner.scala:310) [error] at scala.tools.partest.nest.AbstractRunner.$anonfun$runTestsForFiles$2(AbstractRunner.scala:335) [error] at scala.tools.partest.package$$anon$2.call(package.scala:141) [error] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [error] at java.lang.Thread.run(Thread.java:748) [error] Caused by: sbt.ForkMain$ForkError: java.io.IOException: No such file or directory [error] at java.io.UnixFileSystem.createFileExclusively(Native Method) [error] at java.io.File.createTempFile(File.java:2026) [error] at scala.tools.partest.nest.Runner.$anonfun$diffIsOk$2(Runner.scala:425) [error] at scala.tools.partest.nest.Runner.diffIsOk(Runner.scala:425) [error] at scala.tools.partest.nest.Runner.checked$1(Runner.scala:537) [error] at scala.tools.partest.nest.Runner.$anonfun$runNegTest$3(Runner.scala:540) [error] at scala.tools.partest.nest.Runner.$anonfun$runNegTest$1(Runner.scala:540) [error] at scala.tools.partest.nest.Runner.runInContext(Runner.scala:437) [error] at scala.tools.partest.nest.Runner.runNegTest(Runner.scala:532) [error] at scala.tools.partest.nest.Runner.run(Runner.scala:631) [error] at scala.tools.partest.nest.AbstractRunner.liftedTree1$1(AbstractRunner.scala:310) [error] at scala.tools.partest.nest.AbstractRunner.runTest(AbstractRunner.scala:310) [error] at scala.tools.partest.nest.AbstractRunner.$anonfun$runTestsForFiles$2(AbstractRunner.scala:335) [error] at scala.tools.partest.package$$anon$2.call(package.scala:141) [error] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [error] at java.lang.Thread.run(Thread.java:748)
fc50799
to
9a13083
Compare
lrytz
approved these changes
Sep 17, 2020
I've added a fix for scala/bug#12156 |
Thanks, Jason! |
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.