Community
Participate
Working Groups
If you have a class: A { final String b; } The compiler will red-underline the class, saying: "The blank final field f may not have been initialized". But Eclipse offers no quick fix for that. There are 3 quick fixes that could be offered: a) Create constructor initializing final field from param b) Create constructor initializing final field in body c) Initialize field Conversely, if there are constructors, each constructor that does not set "b" will be re-underlined. In the same vein, these are the possible quick fixes for the constructors: a) Initialize final field from new constructor param b) Initialize final field in constructor body c) Initialize field (only applicable if no constructor has initialized it)
For request about constructor see bug 128023