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.
Summary: | APT is broken on Unicode symbols inside string tokens for modified document | ||
---|---|---|---|
Product: | cnd | Reporter: | Vladimir Voskresensky <vv159170> |
Component: | Code Model | Assignee: | 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
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 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 Created attachment 52767 [details]
proposed patch for 6.0
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 Escalated. Critical for ML release. The fix was reviewed. I believe it is correct and safe. verified in trunk build 20071109 verified in RC1 build |