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

Un-annotated fields in fully initialized @Tested classes having annotated injected fields should be left null #206

Closed
rliesenfeld opened this Issue Sep 12, 2015 · 0 comments

Comments

1 participant
@rliesenfeld
Member

rliesenfeld commented Sep 12, 2015

Currently, if a @tested(fullyInitialized = true) class uses injection annotations (@Inject, etc.), any fields not annotated are also getting injected with a new instance (when a no-args constructor is found).

Said fields should be left null in this situation; only if none of the fields use annotations is that they all should get initialized.

@rliesenfeld rliesenfeld added the bug label Sep 12, 2015

@rliesenfeld rliesenfeld self-assigned this Sep 12, 2015

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