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 50504

Summary: ConcurrentModificationException while pasting into source
Product: java Reporter: Jan Chalupa <jchalupa>
Component: UnsupportedAssignee: Martin Matula <mmatula>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Exception stack trace

Description Jan Chalupa 2004-10-15 21:55:00 UTC
[custom build of 200410115 trunk; JDK 1.4.2_04]

While trying to verify issue #47491, I pasted 
the following code fragment into a newly created 
class:

static class MyTest extends JButton {
    public MyTest() {
         super("Ok");
         addActionListener(new ActionListener() {
           // *this*
         });
     }
}

ConcurrentModificationException was thrown 
immediately (stack trace attached).
Comment 1 Jan Chalupa 2004-10-15 21:55:37 UTC
Created attachment 18332 [details]
Exception stack trace
Comment 2 Martin Matula 2004-10-18 16:30:17 UTC
Fixed.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java,v
 <--  MetadataElement.java
new revision: 1.35; previous revision: 1.34
done
Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java,v
 <--  ResourceImpl.java
new revision: 1.38; previous revision: 1.37
done
Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/SemiPersistentElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/SemiPersistentElement.java,v
 <--  SemiPersistentElement.java
new revision: 1.50; previous revision: 1.49
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/javacore/parser/ResourceInfo.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/ResourceInfo.java,v
 <--  ResourceInfo.java
new revision: 1.12; previous revision: 1.11
done
Comment 3 Jiri Prox 2005-07-12 13:42:27 UTC
Verified in 4.2 (200507110943)
Comment 4 Quality Engineering 2007-09-20 12:46:31 UTC
Reorganization of java component