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.
Since May 14 unit test is failed. junit.framework.AssertionFailedError: Incorrect identing of main ----- expected text: ----- char* a = "\\n ----- document text: ----- char* a = "\\n ----- at org.netbeans.modules.cnd.test.base.BaseDocumentUnitTestCase.assertDocumentText(BaseDocumentUnitTestCase.java:209) at org.netbeans.modules.cnd.test.base.BaseDocumentUnitTestCase.assertDocumentTextAndCaret(BaseDocumentUnitTestCase.java:256) at org.netbeans.modules.cnd.editor.cplusplus.BracketCompletionTestCase.testBreakLineInString3(BracketCompletionTestCase.java:810) at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:88) at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:336) at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:273) at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:355) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:213)
will investigate
probably caused by http://hg.netbeans.org/cnd-main/rev/2b54697873bc
the same wrong behavior in IDE, The problem is in CppIndentTask task = new CppIndentTask(getDocument()); task.reindent(offset+1); it detected the need of shift char* a = "\ | instead of expected 0 position after line continuation "\" char* a = "\ |
Problem is in lexer. The meaning of last token was changed.
fixed, change set: http://hg.netbeans.org/cnd-main/rev/60e9ec1ccc57