summaryrefslogtreecommitdiff
path: root/test/files/run/t7582b.flags
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-06-15 15:49:17 -0400
committerJason Zaugg <jzaugg@gmail.com>2013-06-19 13:12:05 +0200
commit1c69dbcead1d4b1d5033d316d1c0468e46b310b3 (patch)
tree693a0513525d3262a5077ffc7d06d255893691c5 /test/files/run/t7582b.flags
parent1391c51a5232834338a21250db722a89498ee6f1 (diff)
downloadscala-1c69dbcead1d4b1d5033d316d1c0468e46b310b3.tar.gz
scala-1c69dbcead1d4b1d5033d316d1c0468e46b310b3.tar.bz2
scala-1c69dbcead1d4b1d5033d316d1c0468e46b310b3.zip
SI-7582 Only inline accessible calls to package-private Java code
Two problems here. 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. Secondly, we must check accessibility of the called symbol *and* its owner. This case is tested in `run/t7582b`. This commit tightens the check for Java defined symbols: a) check the owner, and b) don't assume that `! isPrivate` is accessible.
Diffstat (limited to 'test/files/run/t7582b.flags')
-rw-r--r--test/files/run/t7582b.flags1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/files/run/t7582b.flags b/test/files/run/t7582b.flags
new file mode 100644
index 0000000000..1182725e86
--- /dev/null
+++ b/test/files/run/t7582b.flags
@@ -0,0 +1 @@
+-optimize \ No newline at end of file