8000 [ci: last-only] merge 2.12.x onto 2.13.x (Feb 17, 2017) by SethTisue · Pull Request #5718 · scala/scala · GitHub
[go: up one dir, main page]

Skip to content

[ci: last-only] merge 2.12.x onto 2.13.x (Feb 17, 2017) #5718

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

Merged
merged 246 commits into from
Feb 18, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
246 commits
Select commit Hold shift + click to select a range
e60768b
SI-4700 Add `@infix` annotation for type printing
VladUreche Sep 14, 2016
81d2c61
SI-3236 constant types for literal final static java fields
jrudolph Mar 8, 2016
74c613b
Support implicit converstions from java literals
lrytz Oct 28, 2016
9b27a08
neg test for parsing constants in Java sources
lrytz Nov 2, 2016
f0d4e1e
String.replaceAllLiterally is String.replace
som-snytt Nov 13, 2016
99b971e
SI-10060 Fixes NumericRange.max bug on empty ranges
tabdulradi Nov 15, 2016
5370f27
fixup! SI-10060 Fixes NumericRange.max bug on empty ranges
Nov 16, 2016
d2d33dd
SI-10067 Java defined inner classes don't have outer accessors
retronym Nov 18, 2016
14451a9
SI-10067 Don't speculatively emit outer tests for inner Java classes
retronym Nov 18, 2016
944db65
SI-10066 Fix crash in erroneous code with implicits, dynamic
retronym Nov 18, 2016
55c6ad4
SI-9834 Improve error on failed op=
som-snytt Jun 28, 2016
76598e8
SI-9834 Show expansion of update on error
som-snytt Nov 25, 2016
dde13b5
Partial fix for SI-7046
milessabin Aug 10, 2016
6ec56ab
Pattern matching virtualization now guarded by -Yvirtpatmat.
milessabin Nov 28, 2016
1870f1a
Typevar experimentals now default; t5729 pos -> neg.
milessabin Nov 28, 2016
37037fe
SI-3772 Fix detection of term-owned companions
retronym Nov 17, 2016
9502a06
Refactor companion lookup methods after code review
retronym Nov 29, 2016
76183a2
Update to mathjax 2.6-latest [2.12.x backport]
adriaanm Nov 29, 2016
038c15e
Merge pull request #5376 from milessabin/topic/clean-experimental
adriaanm Dec 1, 2016
c2eb299
Merge pull request #5284 from milessabin/topic/si-7046
adriaanm Dec 1, 2016
0153522
remove deprecated compiler flag "-Yeta-expand-keeps-star"
larsrh Nov 28, 2016
c7b818f
remove deprecated compiler flag "-Yinfer-by-name"
larsrh Nov 28, 2016
ae9a194
delete dead code
larsrh Nov 28, 2016
6e35e2d
upgrade MiMa to 0.1.12
SethTisue Nov 30, 2016
264cc5f
Merge pull request #5571 from SethTisue/mima-upgrade
SethTisue Dec 1, 2016
212c525
Merge remote-tracking branch 'origin/2.11.x' into merge-2.11.x-to-2.1…
SethTisue Dec 1, 2016
aacef6d
Merge pull request #5572 from SethTisue/merge-2.11.x-to-2.12.x-dec-1
adriaanm Dec 1, 2016
880aec0
SI-10069 Fix code gen errors with array updates, Nothing
retronym Nov 18, 2016
5b269e9
SI-9833 Fix -nobootcp in the Unix scala script
retronym Sep 8, 2016
bfa7ade
Adapt to the removal of sun.boot.class.path
retronym Oct 16, 2016
159480f
Support Java 9 modular runtime images
retronym Apr 24, 2016
891ecbf
Revert existential infer part of #5376
adriaanm Dec 2, 2016
ccfa360
Merge pull request #5385 from retronym/topic/JEP-220
lrytz Dec 2, 2016
a95b468
fix eBNF error by removing wrong closing brace
ptrcarta Dec 2, 2016
ee1c02b
Merge pull request #5573 from adriaanm/revert-part-5376
adriaanm Dec 3, 2016
7a57c6e
SI-10075 annotations go to lazy val's underlying field
adriaanm Nov 30, 2016
7bf8ffa
Drop annotations from trait static super accessor
adriaanm Dec 5, 2016
2787b47
Merge pull request #5570 from adriaanm/t10075
adriaanm Dec 5, 2016
c488a68
bump version (now 2.12.2) + and STARR (now 2.12.1)
SethTisue Dec 5, 2016
5ed47bc
Merge pull request #5580 from SethTisue/starr-is-now-2.12.1
SethTisue Dec 5, 2016
34dad77
SI-10093 don't move member traits to constructor body in constructors
lrytz Dec 6, 2016
f4ae496
Removed redundant casts from Vector
l0rinc Nov 18, 2016
6af55b0
Unified masks in Vector
l0rinc Nov 18, 2016
fd338a7
Deleted leftover debug method from Vector
l0rinc Nov 22, 2016
95a29f2
Deleted leftover code-comments from Vector
l0rinc Nov 18, 2016
5ae77a7
Applied suggestions to Vector cleanup
l0rinc Nov 18, 2016
e06d383
Changed >> to >>> in Vector to unify style
l0rinc Nov 22, 2016
74db1d3
Applied further cleanup to Vector
l0rinc Nov 23, 2016
ad2fda1
add project/build.properties for benchmark project
xuwei-k Dec 7, 2016
c71e41e
Merge pull request #5584 from xuwei-k/patch-2
retronym Dec 7, 2016
bc91223
Changed hashing bit rotation to use Integer.rotateRight
l0rinc Dec 6, 2016
0f3f635
SI-10072 cast Function nodes to environment in specialization
lrytz Dec 7, 2016
60ea98e
S-10098 Fix regression in Unix runner script with JAVA_HOME unset
retronym Dec 7, 2016
695049d
Upgrade MiMa to 0.1.13
2m Dec 8, 2016
3de1c0c
Merge pull request #5545 from paplorinc/vectorCleanup
szeiger Dec 8, 2016
7966edd
SI-4986 SIP-27 Trailing Comma (multi-line only) support
dwijnand Dec 10, 2016
1f4cd50
Update spec build to Jekyll 3.3
ashawley Dec 11, 2016
a346b77
Support extra module references in the REPL
retronym Dec 12, 2016
1ff714b
Compiler support for JEP-193 VarHandle polymorphic signatures
retronym Dec 12, 2016
84484df
Merge pull request #5594 from retronym/topic/JEP-193
lrytz Dec 12, 2016
738ac6d
SI-10086 NumericRange.min|max with custom Integral (#5575)
gzm0 Dec 12, 2016
587a28e
Merge pull request #5574 from ptrcarta/patch-1
lrytz Dec 12, 2016
623f0a7
Merge pull request #5569 from paplorinc/rotr
lrytz Dec 12, 2016
d34e44e
Merge pull request #5550 from retronym/ticket/3772
lrytz Dec 12, 2016
2d90142
Merge pull request #5527 from som-snytt/fix/use-modern-replace
lrytz Dec 12, 2016
8b872da
Merge pull request #5543 from retronym/ticket/10069
lrytz Dec 12, 2016
0a3e2b6
Merge pull request #5531 from tabdulradi/SI-10060
lrytz Dec 12, 2016
7ae0aec
Merge pull request #5593 from ashawley/spec-jekyll-3
adriaanm Dec 12, 2016
103cb78
Merge pull request #5590 from 2m/mima-0.1.13-scala-2.11
SethTisue Dec 12, 2016
4c0a9f1
Merge pull request #5558 from larsrh/topic/deprecated-y-flags
adriaanm Dec 13, 2016
64a0ec4
Modules w. serializable type alias "companions" are not serializable
retronym Dec 13, 2016
8badcad
SI-4700 Show infix types with as few parentheses as needed.
Dec 8, 2016
b91b415
Merge pull request #5602 from retronym/ticket/SD-290
lrytz Dec 1 10000 4, 2016
582c8a2
SI-10068 Only permit elidable methods
som-snytt Nov 17, 2016
fab1db5
SI-4700 Make infix notation default for symbolic types.
Dec 8, 2016
9df6d16
SI-10097 Error if no non-implicit case class param
som-snytt Dec 7, 2016
ca7bbcf
SI-8704 Error on bad implicit sections
som-snytt Dec 8, 2016
32a05dd
SI-8704 Also warn if effectively multiple implicit
som-snytt Dec 8, 2016
a9802c3
Merge pull request #5588 from retronym/ticket/10098
retronym Dec 14, 2016
b775f4f
SI-10097 Adapt unless -Xsource:2.13
som-snytt Dec 9, 2016
e231c09
Merge pull request #5454 from som-snytt/issue/9834-2.11
adriaanm Dec 15, 2016
bf54f1f
Merge pull request #5487 from lrytz/java-constants
adriaanm Dec 15, 2016
97e8ee7
Use ClassTag instead of Manifest in AssertUtil.assertThrows.
sjrd Dec 17, 2016
6cf2c04
Merge pull request #5604 from sjrd/scalajs-friendly-assertthrows
lrytz Dec 17, 2016
bde9bf6
Fix spec links to `07-implicits.html`
szeiger Dec 18, 2016
23548c4
Merge pull request #5605 from szeiger/wip/fix-07-links
adriaanm Dec 19, 2016
bba42ff
Merge pull request #5541 from retronym/ticket/10067
adriaanm Dec 19, 2016
56fb917
Merge pull request #5539 from som-snytt/issue/10068
adriaanm Dec 19, 2016
079e8dc
Merge remote-tracking branch 'origin/2.11.x' into merge/2.11.x-to-2.1…
retronym Dec 20, 2016
0924e73
Merge pull request #5598 from retronym/topic/jdk9-bootcp-repl-javap
lrytz Dec 20, 2016
246653f
Merge pull request #5608 from retronym/merge/2.11.x-to-2.12.x-20161220
lrytz Dec 20, 2016
f1aa0b3
SI-9636 More precise error pos on apply inference
som-snytt Nov 19, 2016
f678a57
Fix how "sbt" is written
dwijnand Dec 21, 2016
ce80124
Override equals and hashCode for WrappedArray
alexeyr Nov 21, 2016
a3135bf
Merge pull request #5610 from dwijnand/sbt
lrytz Dec 21, 2016
c4dcc99
Merge pull request #5583 from lrytz/t10093
adriaanm Dec 21, 2016
bf9b00e
Merge pull request #5607 from adriaanm/rebase-5551
adriaanm Dec 21, 2016
014ebc4
Small cleanups to pattern matcher
adriaanm Dec 21, 2016
80ce231
More robust outer test for patmat
adriaanm Dec 21, 2016
da98683
SI-9630 Fix spurious warning related to same-named case accessors [ba…
retronym Jan 27, 2016
23040fe
[Backport] Modify ArrayBuilder and WrappedArrayBuilder to be reusable
monkey-mas Dec 24, 2016
a75e4a7
SI-9936 LinearSeqOptimized.indexWhere
som-snytt Dec 30, 2016
f618939
Fix documentation of immutable.Queue
Jasper-M Jan 3, 2017
8367bf6
Merge pull request #5624 from Jasper-M/patch-1
lrytz Jan 3, 2017
c94a9b2
Merge pull request #5621 from som-snytt/issue/9936-more
lrytz Jan 3, 2017
c29d7d2
Update to scala-parser-combinators v1.0.5
gourlaysama Jan 4, 2017
18269ea
Merge pull request #5612 from adriaanm/patmat_cleanup
adriaanm Jan 4, 2017
c2356be
fix doc for walkfilter and walk
martijnhoekstra Jan 5, 2017
cb7192c
Restarr on 2.11.8-18269ea
adriaanm Jan 5, 2017
f31745a
SI-8774 Null link fields in mutable hash maps on removal.
Jul 21, 2016
5fd422b
Optimized HashTable.index
l0rinc Nov 22, 2016
26ad9cc
Changed modulo to bitwise AND in hash calculation
l0rinc Nov 22, 2016
276db03
Changed hashing bit rotation to use Integer.rotateRight
l0rinc Dec 6, 2016
02c30a1
Changed HashMap.getOrElseUpdate to only calculate the index once
l0rinc Nov 16, 2016
1e82a92
Simplify HashTable.index further
l0rinc Dec 6, 2016
1b6b19b
Merge pull request #5626 from adriaanm/rebase-5566
adriaanm Jan 6, 2017
c95e6bb
SIP-27 Test varargs, "@", and ": _*"
dwijnand Jan 8, 2017
d55bad8
SIP-27 Tweak and test wildstar in REPL
dwijnand Jan 8, 2017
4f5c30e
Merge pull request #5615 from monkey-mas/modify-ArrayBuilder-reusabil…
szeiger Jan 9, 2017
f841dab
support --show-log for partest command
adriaanm Jan 9, 2017
de361df
SI-8786 fix generic signature for @varargs forwarder methods
lrytz Jul 5, 2016
5b972dc
SI-10071 Separate compilation for varargs methods
dragos Nov 21, 2016
c603449
Don’t run the uncurry info transformer on Java symbols.
dragos Nov 24, 2016
8ad55f8
Simplify creation of varargs forwarder symbol
retronym Nov 24, 2016
8138e24
SI-9331 Fix canEqual for case classes with HK type params
retronym May 27, 2015
9165886
SI-9114 Fix crasher in pattern matcher with type aliases
retronym Jan 27, 2015
2113a7c
SI-9762 Update to JLine 2.14.3
retronym Apr 27, 2016
f070a76
SI-9762 Remove workaround after upstream fix in jline
retronym Apr 27, 2016
55f596b
Upgrade to jline2 2.14.3
adriaanm Jan 10, 2017
cd1006c
Revert "Repl prints '\n' as newline, not "^J""
adriaanm Jan 10, 2017
359b0bc
[backport] SI-6412 remove flaky test
SethTisue Oct 26, 2016
dfd540a
SI-10113 mutable.TreeMap.range does not work
ichaki5748 Jan 10, 2017
32a7461
Merge pull request #5635 from adriaanm/jline-2.14.3
adriaanm Jan 10, 2017
827d69d
Merge pull request #5636 from adriaanm/jline-2.14.3-2.12.x
adriaanm Jan 10, 2017
fac487e
Merge pull request #5633 from adriaanm/ticket/9331
adriaanm Jan 10, 2017
3696732
Merge pull request #5632 from adriaanm/ticket/9114
adriaanm Jan 10, 2017
a5d38ea
Merge pull request #5630 from adriaanm/rebase-5557
adriaanm Jan 11, 2017
2268aab
Calculate MB instead of MiB
janekdb Jan 15, 2017
648eba6
Fix the size of the stack used by RedBlackTree.iteratorFrom.
sjrd Jan 16, 2017
9f2aa0d
Improve performance of Symbol marking
rorygraves Sep 16, 2016
48a4f06
SI-8685 Warn on deprecated case ctor
som-snytt Jan 17, 2017
7e07ec7
SI-10130 Ignore extra parse warnings
som-snytt Jan 17, 2017
a262aab
SI-10148 Follow Java for float literals
som-snytt Jan 17, 2017
409f84d
Improve Queue.++ when building another Queue
edmundnoble Dec 5, 2016
82b2470
Merge pull request #5637 from ichaki5748/Sl-10113
SethTisue Jan 18, 2017
1d41aef
SI-10154 Fix implicit search regression for term-owned objects
retronym Jan 19, 2017
b9d4089
Merge pull request #5651 from rorygraves/2.12.x_symbol_marking
retronym Jan 20, 2017
90a764b
Merge pull request #5645 from sjrd/avoid-array-oob-in-rbtree-iterator…
adriaanm Jan 24, 2017
dc7ff5d
SI-9013 SI-1459 Tests for inherited @varargs annotations
retronym Jan 10, 2017
a75d3fd
SI-1459 two bridges for impl of java generic vararg method
adriaanm Jan 12, 2017
27c10db
adjust to partest 1.1.0's new mixed Java/Scala compilation
lrytz Dec 19, 2016
4386b94
run ScalaCheck tests directly, not through partest
SethTisue Jan 23, 2017
33f6c07
Move Scaladoc's Partest base classes to partest-extras
retronym Jan 25, 2017
bba5f5a
Move scalacheck test suite sources to folders corresponding packaging
retronym Jan 25, 2017
35edd8f
Update IntelliJ template configuration
retronym Jan 25, 2017
6644017
Merge pull request #5631 from adriaanm/ticket/9013
adriaanm Jan 27, 2017
e803cf6
Avoid creating ListBuffer in List.mapConserve
< 10000 span class="description"> rorygraves Sep 27, 2016
4f9faff
Test IndexedSeq, including ArrayOps, WrappedArray.
mkeskells Jan 25, 2017
d540bf0
Optimize slice and take in ArrayOps, WrappedArray
mkeskells Jan 25, 2017
eb5c513
Optimised implementation of List.filter/filterNot
rorygraves Oct 17, 2016
7e89663
Add benchmark for List.mapConserve
rorygraves Jan 28, 2017
c994b59
SI-8662 Repl completions
som-snytt Jan 28, 2017
dc951d9
SI-10030 - added quotes in case the path contains a space and an 8.3-…
Philippus Jan 30, 2017
6d47827
Merge pull request #5661 from SethTisue/direct-scalacheck
retronym Jan 30, 2017
633e6ef
SI-9729 -Xmaxerrs to limit messages
som-snytt Jan 31, 2017
6864d32
Add warning about non-sensible equals in anonymous functions
teldosas Feb 1, 2017
e69524c
Finish resolving conflicts from rebasing commits within #5661
dwijnand Feb 1, 2017
702deae
Make partest --grep glob paths, not just filenames
dwijnand Feb 1, 2017
fff1732
Merge pull request #5668 from dwijnand/failblog
SethTisue Feb 1, 2017
155d06a
SI-9507 Make Stream #:: and #::: allow type widening
ruippeixotog Nov 12, 2016
e7ed71b
Merge pull request #5667 from som-snytt/issue/maxerrs
lrytz Feb 3, 2017
7311a29
Merge pull request #5666 from Philippus/issue/10030
lrytz Feb 3, 2017
f24c260
Handle WrappedArray the same way as ArrayOps for binary compatibility
szeiger Feb 2, 2017
a58de0e
Benchmark for immutable.HashMap.{get, contains}
retronym Feb 3, 2017
44f2f0d
Optimizations in immutable.Map.{get, contains}
retronym Feb 3, 2017
43e9c90
Fix copy/pasto references to mutable package in benchmark
retronym Feb 4, 2017
47bb6be
SI-9519 removed the usecase section of the ++-method
Philippus Feb 4, 2017
93dc3ba
SI-10173 Crash output shows true line number
som-snytt Feb 5, 2017
86889b2
Nuance doc for sliding
som-snytt Feb 7, 2017
575c342
Merge pull request #5665 from som-snytt/issue/8662-file-complete
adriaanm Feb 7, 2017
16e2d15
update and improve description of deprecation policy
SethTisue Feb 8, 2017
40236b0
Merge pull request #5579 from edmundnoble/queue-concat
adriaanm Feb 8, 2017
40d01f3
Merge pull request #5585 from som-snytt/issue/10097
adriaanm Feb 8, 2017
5f944cc
Merge pull request #5625 from gourlaysama/parser-combinators-version-…
adriaanm Feb 8, 2017
8038924
Merge pull request #5673 from retronym/topic/hashmap-contains
adriaanm Feb 8, 2017
8035fb2
Merge pull request #5628 from martijnhoekstra/walkfilterdoc
adriaanm Feb 8, 2017
02a240a
Merge pull request #5642 from janekdb/topic/MB-calculation-correction
adriaanm Feb 8, 2017
36f83e0
Merge pull request #5646 from som-snytt/issue/8685
adriaanm Feb 8, 2017
869416c
Merge pull request #5647 from som-snytt/issue/10130
adriaanm Feb 8, 2017
5dbcea2
Merge pull request #5669 from dwijnand/partest-glob-path
adriaanm Feb 8, 2017
1aa8643
Bump Swing version for 2.0.0 release (#5678)
benhutchison Feb 8, 2017
2a1263f
SI-9780 qualify the reference links so they can be found and use @see…
Philippus Feb 8, 2017
5f1ec53
SI-9780 use @see annotations
Philippus Feb 8, 2017
c5c391c
Merge pull request #5522 from ruippeixotog/issue/9886
szeiger Feb 8, 2017
214a158
Merge pull request #5664 from adriaanm/rework-coll-perf
adriaanm Feb 8, 2017
d6837ae
Merge pull request #5245 from dwijnand/trailing-commas
adriaanm Feb 8, 2017
1452183
Merge pull request #5680 from SethTisue/deprecation-policy
adriaanm Feb 8, 2017
0bf343e
run partest from sbt always, command line never
SethTisue Feb 9, 2017
5340e88
Fix indent and comment of ArrayOps.scala
monkey-mas Dec 28, 2016
9d26d60
Correct the AbstractVar error message
propensive Feb 9, 2017
502e3c6
Merge pull request #5618 from monkey-mas/fix-indent-of-arrayops-2016-…
adriaanm Feb 9, 2017
d1dbf18
SI-10177 Override lazy operations to preserve TrieMap's semantics
retronym Feb 9, 2017
c895b36
fixed broken references after move from 'model' to 'base'
Philippus Feb 10, 2017
d2ff9c5
Delete some unused scripts
lrytz Feb 13, 2017
55d5427
Changing deprecation warning to lineStream
markusjura Feb 13, 2017
4bbb7af
Merge pull request #5676 from som-snytt/issue/10173
lrytz Feb 13, 2017
1eb331b
Fix typos in compiler and reflect
janekdb Feb 12, 2017
f7c17d2
EOL is System.lineSeparator
som-snytt Feb 13, 2017
9ea5010
Merge pull request #5691 from som-snytt/issue/eol
lrytz Feb 13, 2017
e08bccb
fix IndexedSeqTest to work in both Ant and sbt
SethTisue Feb 13, 2017
1371a21
during bootstrap, don't build scala-parser-combinators or -swing
SethTisue Feb 14, 2017
6c71379
SI-10164 BitSet.tail zigs where it zagged
som-snytt Feb 14, 2017
0965028
Merge pull request #5695 from SethTisue/fix-indexedseqtest-under-ant
SethTisue Feb 14, 2017
f207ffc
fix annoying extra space in tab completion of sbt `partest` command
retronym Feb 14, 2017
264836d
Merge pull request #5682 from Philippus/issue/9780
SethTisue Feb 14, 2017
ed9352a
Merge pull request #5686 from propensive/make-abstractvar-context-err…
SethTisue Feb 14, 2017
4ae3750
Merge pull request #5654 from retronym/ticket/10154
adriaanm Feb 15, 2017
05d5338
Merge pull request #5696 from SethTisue/bootstrap-no-parsers-no-swing
adriaanm Feb 15, 2017
b990e51
Merge pull request #5542 from retronym/ticket/10066
adriaanm Feb 16, 2017
9e59dc6
Merge pull request #5587 from lrytz/t10072
adriaanm Feb 16, 2017
ee20de4
Merge pull request #5692 from lrytz/remove-py
adriaanm Feb 16, 2017
aa9a627
Merge pull request #5679 from som-snytt/issue/sliding-doc
adriaanm Feb 16, 2017
e62e9e2
Merge pull request #5662 from teldosas/SI-9675
adriaanm Feb 16, 2017
c10d251
Merge pull request #5546 from som-snytt/issue/9636
adriaanm Feb 16, 2017
e2be7c4
Merge pull request #5589 from allisonhb/feature/si-4700
adriaanm Feb 16, 2017
813324a
Merge pull request #5687 from retronym/ticket/10177
adriaanm Feb 16, 2017
111286e
Merge pull request #5674 from Philippus/issue/9519
adriaanm Feb 16, 2017
7b45676
Merge pull request #5688 from Philippus/fix-scaladoc-base-references
adriaanm Feb 16, 2017
955b779
Merge pull request #5648 from som-snytt/issue/10148
SethTisue Feb 16, 2017
98a7d4c
Merge pull request #5694 from janekdb/topic/2.12.x-scaladoc-spelling-…
SethTisue Feb 16, 2017
c8e5504
Merge pull request #5684 from SethTisue/partest-sbt-only-plz
SethTisue Feb 16, 2017
e04e281
Merge commit '8367bf68c1' into merge-2.11.x-to-2.12.x-20170214
SethTisue Feb 16, 2017
3fc5059
Merge commit '014ebc4' into merge-2.11.x-to-2.12.x-20170214
SethTisue Feb 16, 2017
2324405
Merge commit '32a7461037' into merge-2.11.x-to-2.12.x-20170214
SethTisue Feb 16, 2017
3e99598
Merge commit '36967321c7' into merge-2.11.x-to-2.12.x-20170214
SethTisue Feb 16, 2017
6be69d6
Merge commit 'a5d38ea334' into merge-2.11.x-to-2.12.x-20170214
SethTisue Feb 16, 2017
04c45e1
Merge commit '0965028809' into merge-2.11.x-to-2.12.x-20170214
SethTisue Feb 16, 2017
78eee86
update MiMa whitelist for infix annotation
SethTisue Feb 17, 2017
d5aad25
Merge pull request #5712 from SethTisue/mima-fixup
lrytz Feb 17, 2017
1758e00
Merge pull request #5697 from som-snytt/issue/10164
SethTisue Feb 17, 2017
c8b8005
Merge pull request #5693 from markusjura/lineStream-warnings
SethTisue Feb 17, 2017
71a8a44
Merge branch '2.12.x' into merge-2.11.x-to-2.12.x-20170214
SethTisue Feb 17, 2017
2b3d017
fix recent regression: macro paradise + Java sources = MatchError
SethTisue Feb 17, 2017
419a639
Merge pull request #5701 from SethTisue/merge-2.11.x-to-2.12.x-20170214
adriaanm Feb 17, 2017
db8520e
Merge pull request #5710 from SethTisue/sd-303
adriaanm Feb 17, 2017
456620a
Merge remote-tracking branch 'origin/2.12.x' into merge-2.12.x-onto-2…
SethTisue Feb 18, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor companion lookup methods after code review
  • Loading branch information
retronym committed Nov 29, 2016
commit 9502a061fa007ceb1d4e550fdb386a3645c67b1c
2 changes: 1 addition & 1 deletion src/compiler/scala/tools/nsc/typechecker/Contexts.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ trait Contexts { self: Analyzer =>
final def lookupCompanionOf(original: Symbol): Symbol = {
lookupScopeEntry(original) match {
case null => NoSymbol
case entry => entry.owner.lookupCompanion(original).filter(_.isCoDefinedWith(original))
case entry => entry.owner.lookupCompanion(original)
}
}

Expand Down
11 changes: 5 additions & 6 deletions src/reflect/scala/reflect/internal/Scopes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -294,19 +294,18 @@ trait Scopes extends api.Scopes { self: SymbolTable =>
final def lookupCompanion(original: Symbol): Symbol = {
lookupSymbolEntry(original) match {
case null =>
case entry if entry.sym == original =>
case entry =>
var e = lookupEntry(original.name.companionName)
while (e != null) {
// 1) Must be owned by the same Scope, to ensure that in
// `{ class C; { ...; object C } }`, the class is not seen as a comaniopn of the object.
// 2) Must be in exactly the same scope, so that `{ class C; def C }` are not companions
// TODO Exclude type aliases as companions of terms?
if ((e.owner eq entry.owner) && (original.isTerm || e.sym.hasModuleFlag)) {
return e.sym
// 2) Must be a class and module symbol, so that `{ class C; def C }` or `{ type T; object T }` are not companions.
def isClassAndModule(sym1: Symbol, sym2: Symbol) = sym1.isClass && sym2.isModule
if ((e.owner eq entry.owner) && (isClassAndModule(original, e.sym) || isClassAndModule(e.sym, original))) {
return if (e.sym.isCoDefinedWith(original)) e.sym else NoSymbol
}
e = lookupNextEntry(e)
}
case _ =>
}
NoSymbol
}
Expand Down
0