This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hi, I ran across this problem while integrating some code that compiled correctly with Visual Cafe into NetBeans. I had something like this: public class Rule { public static final Expression exp; static { try { exp = new Expression("I could throw an exception"); } catch (ExpressionFormatException e) { exp = null; e.printStackTrace(); } } } Under VC this compiled fine, but in NetBeans I get a compiler error stating that exp should be initialized or set in every constructor. I could not find a way of getting around this... except for re moving the "final" keyword ! Any suggestions or is this a bug ?
Priority is changed to P4 (normal).
Resolved for 3.4.x or earlier, no new info since then -> verify.
Resolved for 3.4.x or earlier, no new info since then -> closing.