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 254998 - [newcodemodel] two byte symbol breaks code model
Summary: [newcodemodel] two byte symbol breaks code model
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P1 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-04 08:26 UTC by Alexander Simon
Modified: 2015-09-08 01:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sreen shot of broken header code model (115.81 KB, image/png)
2015-09-04 08:26 UTC, Alexander Simon
Details
sreen shot of header without copyright (119.53 KB, image/png)
2015-09-04 08:29 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2015-09-04 08:26:32 UTC
Created attachment 155892 [details]
sreen shot of broken header code model

Code example:
git clone https://github.com/jeaye/stdman.git
Each source file has copyright char.
The char brokes code model.
Comment 1 Alexander Simon 2015-09-04 08:29:54 UTC
Created attachment 155893 [details]
sreen shot of header without copyright
Comment 2 Vladimir Kvashin 2015-09-07 09:01:32 UTC
The bug seems to be not that easy as stated in the description:

I can reproduce it (on my Linux, with GNU tool chain)
But if I try to reproduce it with the simpler code like one below, it does not reproduce.

/* © blah-blah-blah*/

#include <string>
#include <fstream>
#include <stdexcept>

void foo(std::string input_file) {
    std::ifstream ifs{ input_file };
    if(!ifs.is_open()) {        
        // ...
    }
}

If I add a space somewhere into the example in this iz and save the file, problem disappears. Investigating...
Comment 4 Quality Engineering 2015-09-08 01:22:13 UTC
Integrated into 'main-silver', will be available in build *201509080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bdaa2bc274b2
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: updated binaries after fixing #254998 - [newcodemodel] two byte symbol breaks code model