SI-7883 - don't iterate over all keys in MapWrapper.containsKey()
SI-7883: Added a comment per CR feedback from @adriaanm, @Ichoran
SI-3871 Missing test case for protected bug.

c39f26382dddaa7 fixed the bug but didn't commit a test case.
IterableLike grouped : fix documentation


scala> Seq(1,2,3).grouped(2).toList
res1: List[Seq[Int]] = List(List(1, 2), List(3))
IterableLike.grouped() : More explicit documentation
Filter JVM debug output for custom options in partest

The Picked up _JAVA_OPTIONS line occurs on Sun's JDK as a debug output when you use that variable to set up custom VM options
deprecates raw tree manipulation facilities in macros.Context
changes some manual tree constructions in macro tests to quasiquotes
fixes handling of fancy nested classes in runtime reflection

Replaces the `jclazz.isMemberClass` check for whether we have an
inner/nested class with `jclazz.getEnclosingClass != null`, because there
exist classes produced by javac (see the attached jar file and the test log)
which have the following properties:
  * They are nested within a parent class
  * getEnclosingClass returns a non-null value
  * isMemberClass returns false

Previously such classes were incorrectly treated as non-nested, were
incorrectly put into an enclosing package rather than an enclosing class,
and had their names trimmed in the process, leading to situations when
a package has multiple declarations with the same name. This is now fixed.

When changing the check, we need to be careful with interpretation of
what Class.getEnclosingXXX methods return. If getEnclosingClass produces
a non-null result, this doesn't mean that the class is inner or nested,
because getEnclosingClass is also not null for local classes (the ones
with getEnclosingMethod != null || getEnclosingConstructor != null).
This is expressed in the order of pattern match clauses in `sOwner`.

Now when the bug is fixed, I also revert b18a2f8798b2, restoring a very
important integrity check in runtime reflection, which I had to disable
a couple hours ago to fix a master breakage. More details at scala-internals:
https://groups.google.com/forum/#!topic/scala-internals/hcnUFk75MgQ
Fix problem assembling sources and docs of modules.

A recent commit added 'overwrite=true' to all usages of the
Ant copy task.

This was enough to show up a bug in our dist.src and dist.docs
tasks, as was seen on the Windows build:

    Failed to copy:
       C:\Users\scala\.m2\repository\org\scala-lang\modules\scala-xml_2.11.0-M5\1.0-RC4\scala-xml_2.11.0-M5-1.0-RC4-javadoc.jar to
       H:\jenkins\workspace\scala-nightly-windows\dists\scala-2.11.0-20131019-064627-8848f24161\doc\scala-devel-docs\C:\Users\scala\.m2\repository\org\scala-lang\modules\scala-xml_2.11.0-M5\1.0-RC4\scala-xml_2.11.0-M5-1.0-RC4-javadoc.jar ...

This commit uses a "flattening" copy to put the JARs directly into
scala-devel-docs.

The Ant docs note [1] this gotcha:

> Note that some resources (for example the file resource) return
> absolute paths as names and the result of using them without
> using a nested mapper (or the flatten attribute) may not be what
> you expect.

These appear to be the only places we fell into the trap:

    ack '<file\b' --xml
    build.xml
    1948:      <file file="${scala-xml-javadoc}"/>
    1949:      <file file="${scala-parser-combinators-javadoc}"/>
    1992:        <file-sets/>
    2007:      <file file="${scala-xml-sources}"/>
    2008:      <file file="${scala-parser-combinators-sources}"/>

[1] http://ant.apache.org/manual/Tasks/copy.html
hotfix for reflection tests on Windows

Removes the Unix-specific command-line sanity check put in place in recently
committed reflection tests.

On Windows, something like `C:\Java\jdk1.6.0_24-x64\jre\bin\java` might
be a valid command (pointing to `java.exe` or `java.bat`) even if
the eponymous file does not exist.
Merge pull request #3062 from xeno-by/topic/broken-windows

hotfix for reflection tests on Windows
Merge pull request #3061 from retronym/topic/fix-dist

Fix problem assembling sources and docs of modules.
SI-7519: Additional test case covering sbt/sbt#914
Platform independence for SI-6240 test case

File.pathSeparator, rather than ":"
Merge pull request #3064 from retronym/topic/broken-windows2

Platform independence for  test case
Moving disabled tests to their rightful home.

  test/disabled, not test/files/disabled.
Merge pull request #3067 from retronym/ticket/7020-2

Moving disabled tests to their rightful home.
SI-7020 Deterministic warnings for pattern matcher, take 2

The previous swing at determinism, ebb01e05cbe4, made decent
contact but apparently didn't hit it out of the park. The test
wavered every hundred or so runs, as witnessed occasionally in
nightly builds or pull request validation.

I setup a test to run neg/7020.scala a few hundred times, and
could trigger the failure reliably.

I then swept through the pattern matcher in search of HashMap and
HashSet creation, and changed them all to the Linked variety.
The results of that are published in retronym#ticket/7020-3 [1].

This commit represents the careful whittling down of that patch
to the minimal change required to exhibit determinism.

[1] https://github.com/retronym/scala/compare/ticket/7020-3
Merge pull request #3047 from xeno-by/topic/deprecate

deprecates raw tree manipulation facilities in macros.Context