- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
@BeanInfoSkip
Fri, 2009-11-13, 00:05
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
Tue, 2009-11-17, 22:57
#2
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
>
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.