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 151366

Summary: "missing ; before statement" error happens
Product: javascript Reporter: Masaki Katakai <masaki>
Component: EditorAssignee: Torbjorn Norbye <tor>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: pjiricka
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Masaki Katakai 2008-10-25 15:20:04 UTC
Hi,

Could you evaluate this error?

Product Version: NetBeans IDE 6.5 RC2 internal build
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Linux version 2.6.22-15-generic running on i386; ANSI_X3.4-1968; en_US (nb)

1. Create a new JavaScript file
2. Paste the following code into editor

$('input[type=checkbox]').change(function(event) {
  var elem = $(event.target).pparent().get(0);
});

  No error.

3. Delete a "p" of "pparent()" in the 2nd line, change to "parent()".

  "missing ; before statement" error happens

4. Save the file, close the file
5. Open the file again

  Now no error happens.
Comment 1 Torbjorn Norbye 2008-12-10 15:46:43 UTC
This is a duplicate of issue 154179 which I recently fixed in 7.0 (and I have marked it as a 65fixes2-candidate to hopefully get it fixed in the next patch 
release of 6.5 as well).

*** This issue has been marked as a duplicate of 154179 ***