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 136830 - AssertionError when refactoring .js
Summary: AssertionError when refactoring .js
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
Depends on:
Reported: 2008-06-09 15:20 UTC by polan
Modified: 2009-04-30 12:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

AssertionError details (3.90 KB, text/plain)
2008-06-09 15:22 UTC, polan

Note You need to log in before you can comment on or make changes to this bug.
Description polan 2008-06-09 15:20:52 UTC
[200806090002, jdk1.6.0]

to reproduce:
1) File>New File...>Javascript File

2) Type:

var a|a=2; 

NOTE: The | char represents cursor

3) Refactor > Rename...
ERROR: Unexpected exception - A java.lang.AssertionError exception has occurred.

NOTE: Works only when the file is not present in a project
NOTE: In 200805300101 there is no exception, but refactoring doesn't work either
Comment 1 polan 2008-06-09 15:22:45 UTC
Created attachment 62565 [details]
AssertionError details
Comment 2 Torbjorn Norbye 2008-06-10 17:41:51 UTC
This was just fixed in 6.5; tracked in issue 136936 to hopefully get it backported to 6.1 as well.

*** This issue has been marked as a duplicate of 136936 ***
Comment 3 polan 2008-06-18 10:10:06 UTC
[Build 200806180005, JDK 1.6.0, Vista]

This is still reproducible for me. Not fixed.

To reproduce:
1) File > New Project > Web > Web Application (default values)
   Project > New > JavaScript

2) Type:

var myv|ar;

NOTE: The | char represents cursor

3) Invoke rename
ERROR: Unexpected exception - A java.lang.AssertionError exception has occurred.

NOTE: Works every time now, regardless of the file's location
NOTE: PHP project Javascript refactoring works (only when .js is in 'web' folder)
Comment 4 Marek Fukala 2009-04-24 15:37:23 UTC
still reproducible, should be simple
Comment 5 Marek Fukala 2009-04-30 12:44:40 UTC
already fixed.