Skip to content

Merge 2.11.x to 2.12.x [ci: last-only]#5608

Merged
lrytz merged 17 commits intoscala:2.12.xfrom
retronym:merge/2.11.x-to-2.12.x-20161220
Dec 20, 2016
Merged

Merge 2.11.x to 2.12.x [ci: last-only]#5608
lrytz merged 17 commits intoscala:2.12.xfrom
retronym:merge/2.11.x-to-2.12.x-20161220

Conversation

@retronym
Copy link
Member

% git reset --hard origin/2.12.x; git log --oneline --decorate origin/2.11.x --not head --graph
HEAD is now at 56fb917275 Merge pull request #5539 from som-snytt/issue/10068
*   23548c4301 (origin/2.11.x, 2.11.x) Merge pull request #5605 from szeiger/wip/fix-07-links
|\
| * bde9bf6eb2 (szeiger/wip/fix-07-links, origin/pr/5605) Fix spec links to `07-implicits.html`
*   6cf2c046ef Merge pull request #5604 from sjrd/scalajs-friendly-assertthrows
|\
| * 97e8ee7f43 (origin/pr/5604) Use ClassTag instead of Manifest in AssertUtil.assertThrows.
|/
*   bf54f1ff8e Merge pull request #5487 from lrytz/java-constants
|\
| * 9b27a08f78 (origin/pr/5487, lrytz/java-constants) neg test for parsing constants in Java sources
| * 74c613bd45 Support implicit converstions from java literals
| * 81d2c6185e SI-3236 constant types for literal final static java fields
*   e231c09c41 Merge pull request #5454 from som-snytt/issue/9834-2.11
|\
| * 76598e8bf8 (origin/pr/5454) SI-9834 Show expansion of update on error
| * 55c6ad4f8a SI-9834 Improve error on failed op=
*   103cb78da8 Merge pull request #5590 from 2m/mima-0.1.13-scala-2.11
|\
| * 695049d72f (origin/pr/5590) Upgrade MiMa to 0.1.13
*   587a28e5d0 Merge pull request #5574 from ptrcarta/patch-1
|\
| * a95b468814 (origin/pr/5574) fix eBNF error by removing wrong closing brace
* 738ac6d7d3 SI-10086 NumericRange.min|max with custom Integral (#5575)

jrudolph and others added 17 commits October 28, 2016 16:56
Since we don't parse Java expressions, fields of Java classes coming
from source files never have constant types. This prevents using
static java fields in annotation arguments in mixed compilation

This PR assigns constant types to final static java fields if the
initializer is a simple literal.
For example, public static final byte b = 127 is allowed, but 128 is
not.

Also factor out a method that parses a literal. It could be used to
parse annotations (and their literal arguments) in Java sources.
If rewriting `x += y` fails to typecheck, emit error messages
for both the original tree and the assignment.

If rewrite is not attempted because `x` is a val, then say so.

The error message at `tree.pos` is updated with the additional advice.

SI-8763 Crash in update conversion

When there are already errors, don't attempt mechanical rewrites.
SI-10086 NumericRange.min|max with custom Integral
fix eBNF error by removing wrong closing brace
SI-9834 Improve error on failed op=
SI-3236 constant types for literal final static java fields
This allows it to work in Scala.js, which supports `ClassTag`s but
not `Manifest`s.
Use ClassTag instead of Manifest in AssertUtil.assertThrows.
The file referenced by the current links actually exists under
http://www.scala-lang.org/files/archive/spec/2.11/ but with a different
design than the rest. It seems to be left over from an older version.
Fix spec links to `07-implicits.html`
…2.x-20161220

 Conflicts:
	bincompat-backward.whitelist.conf
	build.xml
	src/compiler/scala/tools/nsc/typechecker/Typers.scala
	src/library/scala/collection/immutable/NumericRange.scala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.