This page is no longer maintained — Please continue to the home page at www.scala-lang.org

@BeanInfoSkip

2 replies
Tim Stewart
Joined: 2009-11-13,
User offline. Last seen 42 years 45 weeks ago.

Hi, I'm new to the list but did a search and couldn't find anything on
this. I'm trying to exclude properties (vars) of a class annotated
with @BeanInfo using the @BeanInfoSkip annotation, but they are still
coming through into the compiled BeanInfo class. Any suggestions?
Here's an example - in this case it would be just as easy to use
@BeanProperty, but in some of my other classes there are many bean
properties and only a few that I want to skip, hence this approach.

@BeanInfo
class Account {

var username = ""
var email = ""

@BeanInfoSkip var password = ""
@BeanInfoSkip var valid = false

}

In the produced AccountBeanInfo class, I can see references to both
password and valid, and framework utilities that use reflection return
both these properties.

I'm using Scala 2.7.6.

Thanks
Tim

fanf
Joined: 2009-03-17,
User offline. Last seen 2 years 30 weeks ago.
Re: @BeanInfoSkip

Tim Stewart a écrit :
> [...] I'm trying to exclude properties (vars) of a class annotated
> with @BeanInfo using the @BeanInfoSkip annotation, but they are still
> coming through into the compiled BeanInfo class. [...]
> I'm using Scala 2.7.6.

Hello,

Perhaps are you just seeing a bug. As there is no reference in mailing
list nor in trac, you should open a ticket on that subject.

Tim Stewart
Joined: 2009-11-13,
User offline. Last seen 42 years 45 weeks ago.
Re: @BeanInfoSkip

Thank you Francois, I guess you're referring to:

https://lampsvn.epfl.ch/trac/scala

I have made an account, and as per instructions I will validate the
behaviour against a nightly build of 2.8 before logging it.

Thanks
Tim

On Tue, Nov 17, 2009 at 6:23 PM, Francois Armand wrote:
> Tim Stewart a écrit :
>>
>> [...]  I'm trying to exclude properties (vars) of a class annotated
>> with @BeanInfo using the @BeanInfoSkip annotation, but they are still
>> coming through into the compiled BeanInfo class. [...]
>> I'm using Scala 2.7.6.
>
> Hello,
>
> Perhaps are you just seeing a bug. As there is no reference in mailing list
> nor in trac, you should open a ticket on that subject.
>
> --
> Francois Armand
> http://fanf42.blogspot.com
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland