-
-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using @Until and @Since on class level #1048
Comments
Hmm, it should work out of the box. Can it be that you have a field named players in your class that overrides the virtual property? |
No, there is no players property, nor a players() method (or even getPlayers()). The error message is as following.
(I've made a small correction in the class naming of my simplified example, by the way, maing clear the VirtualProperty doesn't refer to the 'current' class) |
Well, then if is so, a PR is welcome. |
Fixed via #1049 |
The
@VirtualProperty
annotation can be used on classes and methods. The@Until
and@Since
annotations can be used on methods and properties. As such, it is not possible to use the @SInCE annotation in the options argument of the@VirtualProperty
, on class level.In most cases I prefer not to create a method in the class, just to be used in the API. However, such virtual property is limited to specific versions. Therefore, my questions are: Am I right about not being abled to use those annotations in this way? If yes, would it be possible to make
@Until
and@Since
available on class level, within the options-parameter of@VirtualProperty
? I guess it might be relatively easy, since@Groups
is available and seems to be working in the same way.Example:
The text was updated successfully, but these errors were encountered: