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.
Summary: | Exception if pausing input on an incomplete line | ||
---|---|---|---|
Product: | java | Reporter: | twolf2919 <twolf2919> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | pribyl, sustaining |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
screenshot of exception and source code in background
sample java class to reproduce error messages.log file when running 04/19 dev build |
Description
twolf2919
2007-11-27 21:25:25 UTC
Created attachment 53573 [details]
screenshot of exception and source code in background
Reassigning to "java" for evaluation. Unfortunately without a reproducible case, it is very unlikely to be fixable. moving opened issues from TM <= 6.1 to TM=Dev I am closing this as we don't have enough information. Twolf, please reopen if you still experience difficulties with that and provide some additional info (stack trace, steps to follow etc.) Thanks a lot Pribyl, I'm re-opening because it's still a problem - annoying one at that. I spent a couple minutes and can reproduce it easily in my environment (which is now 6.01 with the latest updates on Ubuntu 7.10 with JDK 1.6 update 3). I'm attaching a small source file, NewClass.java. It has a single method with a switch statement in it. It compiles just fine. Now, in the editor, simply double-click the variable columnIndexIn on line 13 (the case statement) and change that to some letter, say, 'p'. The syntax highlighter will put red squigglies under it - and then the Exception occurs. Every time. At least in my project :-) Created attachment 60410 [details]
sample java class to reproduce error
Thank you for the prompt reply. I just tested your java file on several op. systems and NB builds, still with no luck. It works normally for me. I tested on: 1, WinXP - 6.1 RC2 (Build 200804170002), jdk 1.6.10 2, Ubuntu 8.04 - 6.1 RC2 (Build 200804170002), jdk 1.6.05 3, Ubuntu 8.04 - 6.0.1 (Build 200801291616), jdk 1.6.05 Thats really weird. In the very first post you wrote that this happened already on 6.0RC2, Fedora, 1.6.02 JDK, so completely different configuration than now and still the same error, right? I think it was an identical error - at least they both started with "Resolve$ResolveError cannot be cast to com.sun.tools.javac.code.Symbol$ClassSymbol. Now, I should add that I wrote the sample class while I was in a *huge* project (3800 files) - which is the same condition under which I filed the original bug. When I have a few moments this afternoon, I can try to create a totally new project with just this one file in it and see if the error still occurs. Is there any other way I can help debug this? Have you tried to reproduce the issue in the current dev build? Thanks. dbalek, I just installed the 04/19 dev build and it still does the same thing. I'm attaching the messages.log, just in case that is of some help. tom Created attachment 60500 [details]
messages.log file when running 04/19 dev build
Fixed. changeset 0e2cc572dacb in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=0e2cc572dacb changeset aad4c789c843 in main details: http://hg.netbeans.org/main?cmd=changeset;node=aad4c789c843 stupid question: is this going to be in 6.1? Unfortunately the 6.1 is already prepared for release and no fixes are done in it now. But this would be good candidate for patch. Can you please verify the fix is ok in current dev build? If yes, will we be able to include it in patch. Thanks (the current dev build can be downloaded at http://bits.netbeans.org/dev/nightly/latest/) Verified - works in 04/23 dev build. Thanks a bunch for fixing it. tom (am I supposed to mark issue as closed since I opened it?) Thanks for verification. The plan is to release patch 1 on May 23rd The fix has been ported into the release61_fixes branch: http://hg.netbeans.org/release61_fixes/rev/e7dd8f4031c7 |