Skip to content
Permalink
Browse files

fix SI-5682

  • Loading branch information
lrytz committed May 2, 2012
1 parent 90d2bee commit 24b62e616ba2d18eee0a3bbffaf5c76abc6cc4b6
@@ -248,13 +248,12 @@ trait MethodSynthesis {
else List(Getter(vd))
)
def beanAccessors(vd: ValDef): List[DerivedFromValDef] = {
val setter = if (vd.mods.isMutable) List(BeanSetter(vd)) else Nil
if (forMSIL) Nil
else if (vd.symbol hasAnnotation BeanPropertyAttr) {
if (vd.mods.isMutable) List(BeanGetter(vd), BeanSetter(vd))
else List(BeanGetter(vd))
}
else if (vd.symbol hasAnnotation BeanPropertyAttr)
BeanGetter(vd) :: setter
else if (vd.symbol hasAnnotation BooleanBeanPropertyAttr)
List(BooleanBeanGetter(vd))
BooleanBeanGetter(vd) :: setter
else Nil
}
def allValDefDerived(vd: ValDef) = {
@@ -193,7 +193,9 @@ object Test6 {
val c = new C("bob")
c.setText("dylan")
println(c.getText())
if (new D(true).isProp()) {
val d = new D(true)
d.setProp(false)
if (!d.isProp()) {
println(new D(false).getM())
}
}

0 comments on commit 24b62e6

Please sign in to comment.
You can’t perform that action at this time.