akshattandon / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

@UtilityClass makes statically initialized fields null #804

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by tterrag1...@gmail.com on 9 Apr 2015 at 4:17

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

Original comment by reini...@gmail.com on 14 Apr 2015 at 7:45

GoogleCodeExporter commented 9 years ago
Awesome! Thanks for the quick fix.

Original comment by tterrag1...@gmail.com on 14 Apr 2015 at 10:43