@UtilityClass makes statically initialized fields null #839

lombokissues opened this Issue Jul 14, 2015 · 4 comments


None yet

2 participants


Migrated from Google Code (issue 804)


👤 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


👤 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).


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

Awesome! Thanks for the quick fix.


End of migration

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