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 255475 - inaccuracy tests: regression in LiteSQL
Summary: inaccuracy tests: regression in LiteSQL
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-22 08:44 UTC by soldatov
Modified: 2015-09-25 01:47 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 soldatov 2015-09-22 08:44:47 UTC
This problem I can reproduce.

Expected: 0 unresolved identifiers
Real: 1

litesql-src-0.3.15/src/generator/litesql-gen-cpp.cpp 1253 Unable to resolve identifier getAllFields.
Comment 1 Vladimir Kvashin 2015-09-22 14:21:31 UTC
That's a regression caused by
hg.netbeans.org/cnd-main/rev/fa70061476dd
Comment 2 Vladimir Kvashin 2015-09-22 14:30:21 UTC
The self-sufficient code example to be included into unit test is:


#include <vector>

class Object {
public:
    void getAllFields() const;
};

template <class X> class counted_ptr {
public:
    X& operator*()  const throw();
    X* operator->() const throw();
};

typedef counted_ptr<Object> ObjectPtr;
typedef std::vector<ObjectPtr> ObjectSequence;

void foo(ObjectSequence::const_iterator it_o) {
    (**it_o).getAllFields(); // getAllFields is unresolved
}
Comment 3 petrk 2015-09-23 19:48:26 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/d75ba8961f99
Comment 4 Quality Engineering 2015-09-25 01:47:46 UTC
Integrated into 'main-silver', will be available in build *201509250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d75ba8961f99
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #255475 - inaccuracy tests: regression in LiteSQL