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 180292 - When after pointer press "." instead of "->" editor says nothing about mistake
Summary: When after pointer press "." instead of "->" editor says nothing about mistake
Status: RESOLVED DUPLICATE of bug 145500
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-04 09:55 UTC by exterminator13
Modified: 2010-02-04 18:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description exterminator13 2010-02-04 09:55:27 UTC
Assume, I have a code:
Class *c1 = new Class1();
Then I want to call method method1() from c1. 
I type c1 and press ".". After that the code completion windows arises and offers the methods to complete. I select "method1()" and press Enter.
So, I have:
c1.method1();
BUT this is a mistake! Should be 
c1->method1();

This is a trivial example. But imagine I develop GUI code with deep-nested mixes of "." and "->". For instance, "widget.textEdit->append("checked");" or something. And editor says nothing about mistakes. Moreover, it offers variations of code completion.

How to solve... There is two variations:
1. When I press "." except of "->" must be autoreplacing proceeded, e.g. "." must be replaced to "->" automatically. This variation is I consider as the best.
2. When I press "." Code Completion windows should not arise and error message should be showed.
Comment 1 nnnnnk 2010-02-04 18:02:28 UTC

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