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 219077 - Code folding does not work for block comment above imports
Summary: Code folding does not work for block comment above imports
Status: RESOLVED DUPLICATE of bug 71180
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-26 18:04 UTC by markiewb
Modified: 2012-10-04 10:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example with non-foldable comment (9.29 KB, image/png)
2012-09-26 18:05 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2012-09-26 18:04:24 UTC
[ 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
Comment 1 markiewb 2012-09-26 18:05:11 UTC
Created attachment 124962 [details]
Example with non-foldable comment
Comment 2 Svata Dedic 2012-10-04 10:10:49 UTC
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 ***