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.
It looks like there are several cases, where List.nil() is not used. Example is com.sun.tools.javac.tree.JCTree$JCMethodInvocation.args list. This can save some memory especially in cases, where a lot of sources are parsed.
It looks like ListBuffer is creating this empty List instances.
nb-javac: http://hg.netbeans.org/main/nb-javac/rev/f18e29a7f85d NetBeans proper: http://hg.netbeans.org/jet-main/rev/65fac4a3f53a
Integrated into 'main-golden', will be available in build *201212140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/65fac4a3f53a User: Jan Lahoda <jlahoda@netbeans.org> Log: #223094: updating nb-javac, to incorporate ListBuffer optimization