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 65397 - failure in text. NotifyModifiedTest
Summary: failure in text. NotifyModifiedTest
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2005-09-29 17:40 UTC by pzajac
Modified: 2008-12-22 20:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NotifyModifiedOnNbEditorLikeKitTest.html (82.58 KB, text/html)
2005-09-29 17:41 UTC, pzajac
Details
NotifyModifiedTest.html (45.98 KB, text/html)
2005-09-29 17:42 UTC, pzajac
Details
2005 10 20 failure on windows (85.41 KB, text/html)
2005-10-21 11:04 UTC, Jaroslav Tulach
Details
Still problems on windows (57.20 KB, text/html)
2005-11-02 08:27 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2005-09-29 17:40:48 UTC
JDK 1.4.2_08, JDK 1.5.0_05
first failure in  200509271927
Comment 1 pzajac 2005-09-29 17:41:43 UTC
Created attachment 25318 [details]
NotifyModifiedOnNbEditorLikeKitTest.html
Comment 2 pzajac 2005-09-29 17:42:35 UTC
Created attachment 25319 [details]
NotifyModifiedTest.html
Comment 3 Jaroslav Tulach 2005-10-13 12:09:18 UTC
More logging 
 
CloneableEditorSupport.java; 
/cvs/openide/text/src/org/openide/text/CloneableEditorSupport.java,v  <--  
CloneableEditorSupport.java 
new revision: 1.9; previous revision: 1.8 
Comment 4 Jaroslav Tulach 2005-10-21 11:04:32 UTC
Created attachment 26209 [details]
2005 10 20 failure on windows
Comment 5 Jaroslav Tulach 2005-10-21 11:05:36 UTC
Still fails, but only on windows... 
Comment 6 Jaroslav Tulach 2005-10-24 15:57:42 UTC
#65397: More logging and also a fix. The problem was because the 
System.currentTimeMillis on windows more often returns same value than on 
unix, so even there was a lot of operations between two points, they still 
were said to happen at the same time. Putting one Thread.sleep into the test, 
hopefully at the right place. 
 
Checking in test/unit/src/org/openide/text/NotifyModifiedTest.java; 
/cvs/openide/text/test/unit/src/org/openide/text/NotifyModifiedTest.java,v  
<--  NotifyModifiedTest.java 
new revision: 1.4; previous revision: 1.3 
done 
Checking in src/org/openide/text/CloneableEditorSupport.java; 
/cvs/openide/text/src/org/openide/text/CloneableEditorSupport.java,v  <--  
CloneableEditorSupport.java 
new revision: 1.11; previous revision: 1.10 
Comment 7 Jaroslav Tulach 2005-11-02 08:27:20 UTC
Created attachment 26557 [details]
Still problems on windows
Comment 8 Jaroslav Tulach 2005-11-02 08:27:56 UTC
Still fails on windows  
Comment 9 Jaroslav Tulach 2005-11-03 14:22:30 UTC
openide/text/test/unit/src/org/openide/text/NotifyModifiedTest.java,v  <--  
NotifyModifiedTest.java 
new revision: 1.6; 
Comment 10 pzajac 2005-12-02 14:08:24 UTC
verified