SI-1786 incorporate defined bounds in inference

Also fixes SI-5459.

Look, you don't have to redeclare the bounds, isn't it exciting?
For instance, there are eight places in JavaMirrors with this:

  jTypeVariable[_ <: GenericDeclaration]

After this code is in starr, those can look like this:

  jTypeVariable[_]

Since TypeVariable's definition looks like this:

  interface TypeVariable<D extends GenericDeclaration>

We already know that!
SI-6424 Scaladoc: Use mapNodes.get(_) to avoid NoSuchElementException

Use mapNodes.get(_) instead of mapNodes(_) to avoid NoSuchElementException.
No bounds-driven inference for the named.

This is a variation on the previous commit which excludes
named type parameters, so this works

  def f(x: Class[_]) = x.foo.bar

But this does not:

  def f[T](x: Class[T]) = x.foo.bar

This seems undesirable to me, but I offer it in case it makes
the patch more attractive to others.
ScriptEngine.eval() forwards Error instead of new ScriptException
Deprecate parameter names in scala.concurrent

for the purpose of being consistent.
Also switches to Future.successful iso
Promise.successful(..).future for brevity
in implementation code.
[backport #1727] SI-7359 cyclic nested java class

The original commit message (from 54a84a36d5):

SI-6548 reflection correctly enters jinners

When completing Java classes, runtime reflection enumerates their
fields, methods, constructors and inner classes, loads them and
enters them into either the instance part (ClassSymbol) or the
static part (ModuleSymbol).

However unlike fields, methods and constructors, inner classes don't
need to be entered explicitly - they are entered implicitly when
being loaded.

This patch fixes the double-enter problem, make sure that enter-on-load
uses the correct owner, and also hardens jclassAsScala against double
enters that can occur in a different scenario.
[nomaster] unbreaks test.bc

The optimizer behaves unexpectedly smartly, stripping off unused private
methods. Unfortunately, sometimes private methods might be compiled down
to public Java methods, so stripping them off might lead to binary
incompatibilities.

This particular commit recovers from this problem caused by
https://github.com/scala/scala/commit/5e715396af.
Merge pull request #2550 from scalamacros/2.10.x

[nomaster] unbreaks test.bc
Prevent slash duplication.

Don't add trailing slash to external doc URL if it already ends with
one.
SI-7492 Remove -Ystruct-dispatch and associated code

This means that the private option is gone as well as the untested
code for no-cache and mono-cache and the non-working code for
invoke-dynamic.

poly-cache is now always used. For the future it probably makes more
sense to let the backend decide how it wants to treat structural
dispatch instead of allowing the user to “mix and match” backends
with structural dispatch implementations.
SI-7486 regression in implicit resolution.

What a touchy beast the compiler is.
Merge pull request #2553 from paulp/issue/7486

SI-7486 regression in implicit resolution.
SI-7201 scaladoc url in scala-(library,actors,swing,reflect) pom

The project/properties/info.apiURL pom property is used by SBT
to link to an artifact's scaladoc.

For scala library version $v, the url is http://www.scala-lang.org/api/$v/
Note that actors, reflect and swing are included in the library docs in 2.10.x.
Merge pull request #2536 from adriaanm/ticket-7359

[backport #1727] SI-7359 cyclic nested java class
Merge pull request #2549 from vigdorchik/slash_slash

Prevent slash duplication.
Merge pull request #2530 from kzys/jira-6424

SI-6424 Scaladoc: Use mapNodes.get(_) to avoid NoSuchElementException
Merge pull request #2540 from adriaanm/ticket-7201

SI-7201 scala-library's pom points to scaladoc url
Merge pull request #2544 from viktorklang/wip-normalize-parameter-names-in-scala-concurrent-2.11-√

Deprecate parameter names in scala.concurrent
Merge pull request #2541 from rjolly/scripting11

ScriptEngine.eval() forwards Error instead of new ScriptException
Merge pull request #2518 from paulp/issue/1786

SI-1786 incorporate defined bounds in inference