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 52303 - Adding methods ignores code folds
Summary: Adding methods ignores code folds
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-10 23:57 UTC by Chris Webster
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Webster 2004-12-10 23:57:40 UTC
Create java project with main class
package javaapplication2;

public class Main {
    // <editor-fold defaultstate="collapsed" desc="t">
    public static void main(String[] args) {}

    // </editor-fold>
}

Now use the node view for this class to add a
method, notice that the method shows up inside the
code fold (so it looks like the method wasn't
added). This will even occur if there are
additional comments after the fold.
Comment 1 Martin Matula 2005-01-19 16:15:05 UTC
Fixed.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationTypeImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationTypeImpl.java,v
 <--  AnnotationTypeImpl.java
new revision: 1.9; previous revision: 1.8
done
Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaClassImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaClassImpl.java,v
 <--  JavaClassImpl.java
new revision: 1.45; previous revision: 1.44
done
Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaEnumImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaEnumImpl.java,v
 <--  JavaEnumImpl.java
new revision: 1.16; previous revision: 1.15
done
Comment 2 Jiri Prox 2005-07-12 15:58:43 UTC
Verified in 4.2 (200507110943)
Comment 3 Quality Engineering 2007-09-20 09:44:50 UTC
Reorganization of java component