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.
[ BUILD # : 201209232010 ] [ JDK VERSION : 1.6.35 ] The blockcomment above the import section cannot be folded. <code> /* * initial comment */ package javaapplication10; /* * FIXME This comment cannot be folded. */ import java.util.ArrayList; import java.util.List; /** * Comment */ public class NewClass { } </code> See screenshot - no folding marker on the left side. Also reproducible in NetBeans 7.2
Created attachment 124962 [details] Example with non-foldable comment
Java folds only javadoc comments for java language elements; the comment in the example is not a javadoc -> no folding. Even if it was javadoc (/** marker at the start), comment preceding import statement is not interpreted as javadoc anyway -- so I'd say the feature works 'as designed'. For non-documentation comment folding see issue #71180 *** This bug has been marked as a duplicate of bug 71180 ***