scala/scala — pull request #2660 by retronym (2013-06-18 21:32:30+00:00)
Title: SI-7582 Only inline accessible calls to package-private Java code

The inliner was using `isPrivate` / `isProtected` to determine access.
The fallthrough considered things to be (bytecode) public. This is okay
in practice for Scala code, which never emits package private code.

This commit turns the logic around to use `!isPublic && !isProtected` to
equate to "don't inline". This alone is enough to pass `run/t7582`.

Secondly, we must check accessibility of the called symbol *and* its
owner.

Review by @JamesIry

The change to `ClassFileParser` was reviewed in person by @odersky