Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352524

Summary: [exceptions] JavaScript Model Exception while trying rename on a .prototype parent
Product: [WebTools] JSDT Reporter: Lalit Somavarapha <llsomava>
Component: GeneralAssignee: Lalit Somavarapha <llsomava>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: minor    
Priority: P3 CC: cmjaun
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch
none
updated patch
none
patch updated for occurrence matching none

Description Lalit Somavarapha CLA 2011-07-19 22:59:50 EDT
Build Identifier: M20110210-1200

Exception thrown while renaming a .prototype parent. The exception only seems to occur when there is a prototype object attached to its parent function.

Reproducible: Always

Steps to Reproduce:
given
given 
function Circle(){}    
Circle.prototype = new Shape();
1. Right click on Circle.. Refactor->Rename.
2. Rename and then Enter.

JavaScript Model Exception is thrown
Comment 1 Lalit Somavarapha CLA 2011-07-20 09:58:33 EDT
Created attachment 200004 [details]
patch
Comment 2 Lalit Somavarapha CLA 2011-08-16 10:42:23 EDT
Created attachment 201580 [details]
updated patch
Comment 3 Lalit Somavarapha CLA 2011-08-16 10:58:39 EDT
Created attachment 201582 [details]
patch updated for occurrence matching
Comment 4 Chris Jaun CLA 2013-04-01 11:06:39 EDT

*** This bug has been marked as a duplicate of bug 229190 ***