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 210384 - unresolved "using namespace std"
Summary: unresolved "using namespace std"
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-29 15:50 UTC by Vladimir Voskresensky
Modified: 2012-04-02 15:55 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 Vladimir Voskresensky 2012-03-29 15:50:43 UTC
1) create CppApplication, open main.cpp => std is OK
2) create other CppApplication open main.cpp => std is OK or not OK
   if OK => repeat 2
it will be broken after several iterations.
Comment 1 Vladimir Voskresensky 2012-03-29 16:00:42 UTC
Ctrl+Alt+Shift+M shows that some applications have 2 dependent libs, while broken one has one dependent Lib
====Libraries:
LibraryManager: libs=2
Lib[1] org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryKey@29d8de55 with LibEntry folder=org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryKey@29d8de55,
libraryUID=KeyBasedUID on ProjectKey /usr/includeL
dependentProjects=
(20039622)KeyBasedUID on ProjectKey /home/vvoskres/NetBeansProjects/CppApplication_12N
(8607359)KeyBasedUID on ProjectKey /home/vvoskres/NetBeansProjects/CppApplication_10N
(26215972)KeyBasedUID on ProjectKey /home/vvoskres/NetBeansProjects/CppApplication_11N
Lib[2] org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryKey@188c82c0 with LibEntry folder=org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryKey@188c82c0,
libraryUID=KeyBasedUID on ProjectKey /export/opt/solstudio12.2/prod/include/CC/stdL
dependentProjects=
(8378811)KeyBasedUID on ProjectKey /home/vvoskres/NetBeansProjects/CppApplication_13N
(20039622)KeyBasedUID on ProjectKey /home/vvoskres/NetBeansProjects/CppApplication_12N
(8607359)KeyBasedUID on ProjectKey /home/vvoskres/NetBeansProjects/CppApplication_10N
(26215972)KeyBasedUID on ProjectKey /home/vvoskres/NetBeansProjects/CppApplication_11N
Comment 2 Vladimir Voskresensky 2012-03-29 16:27:40 UTC
http://hg.netbeans.org/cnd-main/rev/e05a5494ab52
Comment 3 Vladimir Voskresensky 2012-03-30 16:10:05 UTC
hide internals from API
http://hg.netbeans.org/cnd-main/rev/a73ac0f228e2

and test which fails without fix and passes with fix
http://hg.netbeans.org/cnd-main/rev/a81f4e0bb493
Comment 4 Quality Engineering 2012-04-02 15:55:39 UTC
Integrated into 'main-golden', will be available in build *201204021038* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a73ac0f228e2
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #210384 - unresolved "using namespace std"
- hide key internals from API