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.
GeneratorUtilities.copyComments() prints an exception when the source tree has no comments. I think if there are no comments it should not copy anything and not print any errors. Nov 24, 2011 2:00:31 PM org.netbeans.api.java.source.TreeUtilities ensureCommentsMapped WARNING: Comment automap requested for Tree not from the root compilation info. Please, make sure to call GeneratorUtilities.importComments before Treeutilities.getComments. Tree: private int i Nov 24, 2011 2:00:31 PM org.netbeans.api.java.source.TreeUtilities ensureCommentsMapped INFO: Caller java.lang.Exception at org.netbeans.api.java.source.TreeUtilities.ensureCommentsMapped(TreeUtilities.java:228) at org.netbeans.api.java.source.GeneratorUtilities.copyComments(GeneratorUtilities.java:798)
Slight correction (as a note to myself): the GU.importComments will not mark the tree (/CommentSetImpl) correctly as "comments mapped" when it does not actually assign any comments to it.
*** Bug 206086 has been marked as a duplicate of this bug. ***
See bug #206086 for a user-level bug caused by the same root cause. http://hg.netbeans.org/jet-main/rev/4c10e36e75c4
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/4c10e36e75c4 User: Jan Lahoda <jlahoda@netbeans.org> Log: #205525: making sure that importComments marks the tree with the comments-mapped mark, even if there are no comments assigned to the particular tree.
verified in trunk
release71_fixes: http://hg.netbeans.org/releases/rev/9c9928cadad0
Integrated into 'releases', will be available in build *201202072200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/9c9928cadad0 User: Jan Lahoda <jlahoda@netbeans.org> Log: #205525: making sure that importComments marks the tree with the comments-mapped mark, even if there are no comments assigned to the particular tree. (transplanted from 4c10e36e75c42cb3b6711276be3c8294c884582e)
verified in patch1
*** Bug 207791 has been marked as a duplicate of this bug. ***