diff options
author | Paul Phillips <paulp@improving.org> | 2009-04-20 18:52:38 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-04-20 18:52:38 +0000 |
commit | 92f91f0e063e62c089916ebaed085e62fd4d64a2 (patch) | |
tree | c4a054b9b4645839f2251df9d147990f28c61f25 | |
parent | 1e1231c1500ce8888628ff35230e5b20d12bea01 (diff) | |
download | scala-92f91f0e063e62c089916ebaed085e62fd4d64a2.tar.gz scala-92f91f0e063e62c089916ebaed085e62fd4d64a2.tar.bz2 scala-92f91f0e063e62c089916ebaed085e62fd4d64a2.zip |
Tightened checks for ScalaBeanInfo field selection
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index a5616c863f..b412340372 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -256,7 +256,7 @@ abstract class GenJVM extends SubComponent { for (f <- clasz.fields if f.symbol.hasGetter; val g = f.symbol.getter(c.symbol); val s = f.symbol.setter(c.symbol); - if g.isPublic) + if g.isPublic && !(f.symbol.name startsWith "$")) // inserting $outer breaks the bean fieldList = javaName(f.symbol) :: javaName(g) :: (if (s != NoSymbol) javaName(s) else null) :: fieldList val methodList = for (m <- clasz.methods |