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.
I would like to add a new method to TreeUtilities, isCompileTimeConstantExpression to check constantness of an expression as per JLS 15.28. I will attach a proposed patch once I have a bug number.
Created attachment 112592 [details] Proposed API change.
Thanks for review: http://hg.netbeans.org/jet-main/rev/70f1611a0825
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/70f1611a0825 User: Jan Lahoda <jlahoda@netbeans.org> Log: #204435: adding TreeUtilities.isCompileTimeConstantExpression.