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 67778 - Error when entering text in in a java file within IDE
Summary: Error when entering text in in a java file within IDE
Status: RESOLVED DUPLICATE of bug 66324
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-30 00:36 UTC by vonhaartman
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 vonhaartman 2005-10-30 00:36:59 UTC
i was typing in System.out,println  <-- at this point i get a error
Its allso in a loop so i had to kill NB and reboot to get my NB up and running
again!

Netbeans 5 beta on a P4 2.66Ghz win xp sp2.. 
I will provide any debug info as asked. i only sending this for your info
Details below:
================
java.lang.ClassCastException
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.LocalVarDeclarationImpl.initChildren(LocalVarDeclarationImpl.java:108)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.LocalVarDeclarationImpl.getAnnotations(LocalVarDeclarationImpl.java:90)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.LocalVarDeclarationImpl.getChildren(LocalVarDeclarationImpl.java:97)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ElementFinder.getElementByOffset(ElementFinder.java:40)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getElementByOffset(ResourceImpl.java:1640)
	at
org.netbeans.modules.j2ee.ejbcore.hints.EjbHintsProvider.getHints(EjbHintsProvider.java:82)
	at
org.netbeans.modules.editor.hints.HintsOperator$HintPopupTaskImpl.run(HintsOperator.java:233)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:870)
Comment 1 vonhaartman 2005-10-30 00:43:55 UTC
I found that betwwen each error message (as it was in a loop) i found i has 1 to
3 chances to add a char in the code, so i deleted the System.out.println and the
errors stoped when i was left with the word System. in other words the last
error was reported when i had System. on the screen.


   public static int main(String[] args) {
        MainWindow MW;
        Exit = false;
        
        String name;
        name = System.getProperty("user.name");
        System <----------Editing here at time of error
//        java.awt.EventQueue.invokeLater(new Runnable() {
//            public void run() {
//                new MainWindow().setVisible(true);
//            }  }
        MW = new MainWindow();
        MW.setVisible(true);
        while (Exit == false) {
            Exit = MW.IsExitRequested();
            
        }
        System.out.println("while loop ended");
        MW.setVisible(false);
        System.exit(0);
        return 0;
    };
}
Comment 2 Jesse Glick 2005-10-30 01:26:46 UTC
Wrong component.
Comment 3 Jan Becicka 2005-11-01 15:21:59 UTC

*** This issue has been marked as a duplicate of 66324 ***
Comment 4 Quality Engineering 2007-09-20 12:50:34 UTC
Reorganization of java component