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 121347

Summary: APT is broken on Unicode symbols inside string tokens for modified document
Product: cnd Reporter: Vladimir Voskresensky <vv159170>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: VERIFIED FIXED    
Severity: blocker CC: avp
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: proposed patch for 6.0

Description Vladimir Voskresensky 2007-11-07 09:32:46 UTC
int main(int argc, char**argv) {
   // № 1   in russian is the problem symbol inside string
   cout <<"Точка № 1  :\n";
}
Comment 1 Vladimir Voskresensky 2007-11-07 09:35:36 UTC
test file is:
Checking in 0x16.cc;
/shared/data/ccvs/repository/cnd/modelimpl/test/unit/data/org/netbeans/modules/cnd/modelimpl/trace/FileModelTest/0x16.cc,v
 <--  0x16.cc
initial revision: 1.1
done
Comment 2 Vladimir Voskresensky 2007-11-08 23:24:42 UTC
It seems to be problem for a lot of Unicode symboles when file is not saved (so FileBuffer is document based)
And in this case we have broken APT for whole file
Rising to P2
Comment 3 Vladimir Voskresensky 2007-11-08 23:54:52 UTC
Created attachment 52767 [details]
proposed patch for 6.0
Comment 4 Vladimir Voskresensky 2007-11-08 23:59:23 UTC
fixed in trunk:
- use standard ByteArrayInputStream to convert String into InputStream

cvs log:
Checking in FileBufferDoc.java;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/platform/FileBufferDoc.java,v  <--  FileBufferDoc.java
new revision: 1.9; previous revision: 1.8
done
Comment 5 Jesse Grodnik 2007-11-09 00:17:43 UTC
Escalated. Critical for ML release.
Comment 6 Vladimir Kvashin 2007-11-09 11:07:14 UTC
The fix was reviewed.
I believe it is correct and safe.
Comment 7 Alexander Pepin 2007-11-09 14:58:04 UTC
verified in trunk build 20071109
Comment 8 Alexander Pepin 2007-11-12 11:16:00 UTC
verified in RC1 build