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.
Test code: clazz = ClassElement.forName(getClass().getPackage().getName() + "." + TEST_FILE, artefact); clazz.getSource().prepare().waitFinished(); clazz.getJavaDoc().setRawText("This is TestFile"); String result=""; DataObject DO = (DataObject) clazz.getSource().getCookie(DataObject.class); EditorCookie ec=(EditorCookie)(DO.getCookie(EditorCookie.class)); javax.swing.text.StyledDocument doc=ec.openDocument(); result=doc.getText(0, doc.getLength()); result=Common.unify(result);
Created attachment 15882 [details] TEST_FILE
Created attachment 15883 [details] Result
Fixed. This bug was in Common.unify(String) method that did not check if info on time and author's name is present in the processed text or not. Checking in Common.java; /cvs/java/test/qa-functional/src/org/netbeans/test/java/Common.java,v <-- Common.java new revision: 1.8; previous revision: 1.7
verified
Reorganization of java component