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 225810 - Double-colon automatically inserted after class name in "implements" line
Summary: Double-colon automatically inserted after class name in "implements" line
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-06 17:22 UTC by ianfp
Modified: 2013-02-06 17:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the double-colon which is incorrectly auto-inserted (60.83 KB, image/png)
2013-02-06 17:22 UTC, ianfp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ianfp 2013-02-06 17:22:00 UTC
Created attachment 131069 [details]
Shows the double-colon which is incorrectly auto-inserted

When I'm entering the interfaces that a class implements, the auto-completion automatically inserts the double-colon after the interface name, which is invalid syntax. For example:

abstract class PurchasingDataTemplate
implements PurchasingDataStrategy, RialtoEntity, Persistable::
{
    // ...
}

See the attached screenshot.
Comment 1 Ondrej Brejla 2013-02-06 17:27:12 UTC
Sorry, but it work for me in the dev build:

<?php

interface Omg {}

abstract class ClassName implements Omg, Omg, O {} //CC after O

?>

If I try to complete after O, just "Omg" is inserted. Without ::.

If you can prepare a sample file, where the problem occurs, attach it here. Thanks.