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

Summary: AssertionError when refactoring .js
Product: javascript Reporter: polan <polan>
Component: EditorAssignee: Marek Fukala <mfukala>
Status: RESOLVED FIXED    
Severity: blocker CC: mschovanek
Priority: P3 Keywords: SIMPLEFIX
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: AssertionError details

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.