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 110100 - AssertionError: o.n.m.junit.GoToOppositeAction.isEnabled in automated tests
Summary: AssertionError: o.n.m.junit.GoToOppositeAction.isEnabled in automated tests
Status: CLOSED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Marian Petras
URL: http://beetle.czech.sun.com/automated...
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2007-07-18 08:26 UTC by Marian Mirilovic
Modified: 2009-12-03 03:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
AssertionError - stack trace (1.51 KB, text/plain)
2007-07-18 08:28 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2007-07-18 08:26:32 UTC
I see AssertionError(see attachment), only on Linux Ubuntu and only on JDK 1.5.0_12 -> means JDK6.0_02 is ok as well as
other OSes, during javahelp tests run, during invocation Help by F1.
Comment 1 Marian Mirilovic 2007-07-18 08:28:20 UTC
Created attachment 45284 [details]
AssertionError - stack trace
Comment 2 Marian Petras 2007-10-09 16:42:00 UTC
It seems that this has the same cause as bug #90590.
Comment 3 Marian Petras 2007-10-10 08:32:12 UTC
The method from which the AssertionError is thrown, is:

    @Override
    public boolean isEnabled() {
        assert EventQueue.isDispatchThread();
        
        return checkDirection() != null;
    }

It is the assertion that EventQueue.isDispatchThread() what fails. But from the callstack, it is apparent that the
method was actually called from an event-dispatching thread.

Most probably this is caused by some of the following JDK bugs:

   http://bugs.sun.com/view_bug.do?bug_id=6542185 - "Threading issues with java.awt.EventQueue.push/pop"
   http://bugs.sun.com/view_bug.do?bug_id=6424157 - "java.awt.EventQueue push/pop might cause threading issues"
   http://bugs.sun.com/view_bug.do?bug_id=6553239 - "one more threading problem with EventQueue.pop()"

This bug is really hard to reproduce and it does not happen in recent builds. It also happened only during automatic
tests, not during real work with NetBeans, so I lower the priority to P4.

This is caused by a JDK bug so I mark this bug as WONTFIX, with an appropriate JDK bug reference in the status
whiteboard field.
Comment 4 Marian Mirilovic 2009-12-03 03:24:56 UTC
v/c