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 197571 - Code completition for consts
Summary: Code completition for consts
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 13:36 UTC by leszczu
Modified: 2011-04-13 08:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (59.64 KB, image/jpeg)
2011-04-08 13:37 UTC, leszczu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leszczu 2011-04-08 13:36:48 UTC
On Netbeans 7.0 beta 2.

Consider this code:

class sfWidgetFormSchema extends sfWidgetForm implements ArrayAccess
{
  const
    FIRST  = 'first',
    LAST   = 'last',
    BEFORE = 'before',
    AFTER  = 'after';

 [...]
}

While typing:
sfWidgetFormSchema::
code completition should show four constants, each with different value. However, it shows all with value 'first'.

Screenshot included.
Comment 1 leszczu 2011-04-08 13:37:19 UTC
Created attachment 107611 [details]
Screenshot
Comment 2 Petr Pisl 2011-04-12 14:13:53 UTC
Fixed in web-main. Will be part of NB 7.next.
Comment 3 Quality Engineering 2011-04-13 08:43:54 UTC
Integrated into 'main-golden', will be available in build *201104130401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9f93fbfb5b0f
User: Petr Pisl <ppisl@netbeans.org>
Log: #197571 - Code completition for consts