@UtilityClass makes statically initialized fields null #839

Closed
lombokissues opened this Issue Jul 14, 2015 · 4 comments

Projects

None yet

2 participants

@lombokissues
Collaborator

Migrated from Google Code (issue 804)

@lombokissues
Collaborator

👤 tterrag1098   🕗 Apr 09, 2015 at 16:17 UTC

What steps will reproduce the problem?

  1. Create a class with @ UtilityClass on it
  2. Make a field that is predefined, e.g. private Random rand = new Random();
  3. The field will be made static but have no assignment

What is the expected output? What do you see instead?
I expect the field to maintain its assignment instead of becoming null

What version of the product are you using? On what operating system?
Lombok v1.16.2
Eclipse Luna 4.4.2
Windows 7 running java 7

Please provide any additional information below.
This issue is also reported on the google groups: https://groups.google.com/forum/﹟!topic/project-lombok/2N7choSgru8

@lombokissues
Collaborator

👤 reinierz   🕗 Apr 14, 2015 at 19:45 UTC

Good catch! Fixed and will be out real soon (couple hours, we're going to push out a release right after this).

@lombokissues
Collaborator

👤 tterrag1098   🕗 Apr 14, 2015 at 22:43 UTC

Awesome! Thanks for the quick fix.

@lombokissues
Collaborator

End of migration

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