Skip to content
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

Exclude class level variable #35

Open
otisonoza opened this issue May 17, 2017 · 2 comments
Open

Exclude class level variable #35

otisonoza opened this issue May 17, 2017 · 2 comments
Assignees
Milestone

Comments

@otisonoza
Copy link

Excluding a class level variable is not possible and raises the following compiler error:

annotation type not applicable to this kind of declaration
        @Exclude
        ^
public class FlawDetails {
	@Exclude
	private String comment;
@snorbi07
Copy link
Contributor

Hi @otisonoza,

Thanks for letting me know! Indeed, that is a bug and not a feature. Will be fixed for the next release!

@snorbi07 snorbi07 self-assigned this May 17, 2017
@snorbi07 snorbi07 added this to the 0.5.0 milestone May 17, 2017
@snorbi07
Copy link
Contributor

Status update:

  • ghostwriter-api needs to be updated to allow the exclude annotation on fields as well (simple matter)
  • field definition excludes are class definition local, so writing to a public field from a different class is a tricky case that needs some work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants