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.

Bug 204435 - TreeUtilities.isCompileTimeConstantExpression
Summary: TreeUtilities.isCompileTimeConstantExpression
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: apireviews
Depends on:
Blocks: 204373
  Show dependency tree
Reported: 2011-10-31 11:31 UTC by Jan Lahoda
Modified: 2011-11-08 15:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Proposed API change. (4.44 KB, patch)
2011-10-31 11:34 UTC, Jan Lahoda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2011-10-31 11:31:39 UTC
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.
Comment 1 Jan Lahoda 2011-10-31 11:34:10 UTC
Created attachment 112592 [details]
Proposed API change.
Comment 2 Jan Lahoda 2011-11-07 16:26:07 UTC
Thanks for review:
Comment 3 Quality Engineering 2011-11-08 15:38:48 UTC
Integrated into 'main-golden'
User: Jan Lahoda <>
Log: #204435: adding TreeUtilities.isCompileTimeConstantExpression.