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 57418 - Odd crashes when parsing a .java file
Summary: Odd crashes when parsing a .java file
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-04 12:04 UTC by kitfox
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file (1.53 MB, text/plain)
2005-04-04 12:11 UTC, kitfox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kitfox 2005-04-04 12:04:55 UTC
For some reason, the below file is causing NetBeans to throw a lot fo exceptions
and sometimes crash.  Note that is is incorrect because it is only partially
complete.  The crashes prevented me from getting much further.

/*
 * InputEventQueue.java
 *
 * Created on April 4, 2005, 5:04 AM
 */

package com.kitfox.game.core;

import java.awt.*;

import java.awt.event.*;

/**
 * Queue AWT events for later processing
 *
 * @author kitfox
 */
public class InputEventQueue
{
    enum EventType
    {
        KEY_PRESSED,
        KEY_RELEASED
    }
    
    class Event
    {
        EventType type;
        InputEvent event;
    }
    
    LinkedList<Event> queue = new LinkedList<Event>();
    
    /** Creates a new instance of InputEventQueue */
    public InputEventQueue()
    {
    }
    
}
Comment 1 kitfox 2005-04-04 12:11:57 UTC
Created attachment 21342 [details]
Log file
Comment 2 Martin Roskanin 2005-04-04 13:53:59 UTC
reassiging to mdr module for evaluation
Comment 3 Martin Matula 2005-04-04 15:43:39 UTC
This seems to be reproducible when editing a file, changing some inner class to
enum or vice versa and then exiting IDE and discarding all the editor changes.
The exception occurs on the next IDE start. Reassigning to java/javacore.
Comment 4 Martin Matula 2005-04-04 21:53:02 UTC
Fixed.

Checking in src/org/netbeans/modules/javacore/scanning/JavaUpdater.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/JavaUpdater.java,v
 <--  JavaUpdater.java
new revision: 1.23; previous revision: 1.22
done
Comment 5 Quality Engineering 2007-09-20 09:46:50 UTC
Reorganization of java component