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 232173 - Autocomplete with Ctrl+Space causes ClassCastException
Summary: Autocomplete with Ctrl+Space causes ClassCastException
Status: RESOLVED DUPLICATE of bug 228931
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-03 02:09 UTC by ecerichter
Modified: 2013-07-04 06:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample file where it does not happen (421 bytes, text/html)
2013-07-03 06:10 UTC, Vladimir Riha
Details
IDE Log after the error. (71.38 KB, application/octet-stream)
2013-07-03 13:27 UTC, ecerichter
Details
file that causes the error (1.14 KB, application/octet-stream)
2013-07-03 13:30 UTC, ecerichter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ecerichter 2013-07-03 02:09:13 UTC
Product Version = NetBeans IDE Dev (Build 201307011244)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01

When working with Javascript inside a tag file, I got a ClassCastException when hit Ctrl+Space to autocomplete "false" word:

    setTimeout(function() {
      btn.disabled = fa|;
    }, 300)

Just hit "Ctrl+Space" when cursor is at "|" mark.
Comment 1 Vladimir Riha 2013-07-03 06:10:11 UTC
Created attachment 136626 [details]
sample file where it does not happen

Could you please attach IDE log with the exception and some sample? I tried it in the attach sample and cannot reproduce. Thank you in advance.


Product Version: NetBeans IDE Dev (Build 201307022300)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 2 ecerichter 2013-07-03 13:27:58 UTC
Created attachment 136656 [details]
IDE Log after the error.

Sorry, an error occurred yesterday, and the upload failed.
Here is the IDE log.
Comment 3 ecerichter 2013-07-03 13:30:05 UTC
Created attachment 136657 [details]
file that causes the error

Se that line is incomplete:


btn.disabled = fa;


try to complete it as


btn.disabled = false;


using auto-complete.
Comment 4 Vladimir Riha 2013-07-03 13:51:16 UTC
Thank you, I tried it and reproduced, the exception report was attached to issue 228931. Could you please try the same? Should the result be same, I think this could be resolved as duplicate.
Comment 5 ecerichter 2013-07-03 15:47:36 UTC
(In reply to comment #4)
> Thank you, I tried it and reproduced, the exception report was attached to
> issue 228931. Could you please try the same? Should the result be same, I think
> this could be resolved as duplicate.

Of course!

Thanks for the update.

Regards,

Edson

*** This bug has been marked as a duplicate of bug 228931 ***
Comment 6 Vladimir Riha 2013-07-04 06:14:55 UTC
Thanks a lot Edson