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 45281 - ClassElement generates bad package keywords
Summary: ClassElement generates bad package keywords
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-21 14:00 UTC by ehucka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
TEST_FILE (205 bytes, text/plain)
2004-06-21 14:01 UTC, ehucka
Details
Result (189 bytes, text/plain)
2004-06-21 14:02 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2004-06-21 14:00:26 UTC
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);
Comment 1 ehucka 2004-06-21 14:01:25 UTC
Created attachment 15882 [details]
TEST_FILE
Comment 2 ehucka 2004-06-21 14:02:56 UTC
Created attachment 15883 [details]
Result
Comment 3 Daniel Prusa 2004-06-23 13:54:41 UTC
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
Comment 4 ehucka 2004-08-18 11:09:54 UTC
verified
Comment 5 Quality Engineering 2007-09-20 12:06:29 UTC
Reorganization of java component