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 190623 - "[catch]" usually misplaced
Summary: "[catch]" usually misplaced
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-27 17:58 UTC by Jesse Glick
Modified: 2010-09-29 03:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Demo action (1.13 KB, text/plain)
2010-09-27 18:55 UTC, Jesse Glick
Details
Better demo (1.43 KB, text/plain)
2010-09-27 19:26 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-09-27 17:58:45 UTC
This annotation is supposed to be shown on a stack trace where it was caught, but that does not seem to work very reliably; usually it shown much higher (i.e. later in the log).
Comment 1 Jesse Glick 2010-09-27 18:55:35 UTC
Created attachment 102171 [details]
Demo action

Ought to show

[catch] at test190623.BreakAction.b(BreakAction.java:28)

in both stack traces, but instead shows

[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

in the first and

[catch] at test190623.BreakAction$1.run(BreakAction.java:19)

in the second.
Comment 2 Jesse Glick 2010-09-27 19:20:09 UTC
Seems to have been caused by a switch to handling LogRecord's asynchronously - the catching thread, which calls publish(...), is not the thread printing the stack trace. For whatever reason, NbErrorManagerTest.testCatchMarker was not broken by the change.
Comment 3 Jesse Glick 2010-09-27 19:26:28 UTC
Created attachment 102172 [details]
Better demo

Also shows nested causes being correctly displayed.
Comment 4 Jesse Glick 2010-09-27 19:27:49 UTC
core-main #c8ebeaf8eaef
Comment 5 Jesse Glick 2010-09-27 19:28:48 UTC
(Really far older than 6.10, but I am not sure when it first regressed.)
Comment 6 Quality Engineering 2010-09-29 03:10:33 UTC
Integrated into 'main-golden', will be available in build *201009290000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c8ebeaf8eaef
User: Jesse Glick <jglick@netbeans.org>
Log: #190623: "[catch]" usually misplaced