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 38699 - Inappropriate exception from SyntaxElement.getPrevious/Next
Summary: Inappropriate exception from SyntaxElement.getPrevious/Next
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: RANDOM
: 37872 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-13 17:00 UTC by Jesse Glick
Modified: 2007-09-25 01:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suggested patch to make the bug less onerous (does not fix the bug) (1.88 KB, patch)
2004-01-13 17:01 UTC, Jesse Glick
Details | Diff
Stack trace from exception I encountered once in dev-040109 (1.66 KB, text/plain)
2004-01-13 17:03 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-01-13 17:00:35 UTC
At some point when using Ant code completion
(ant/grammar) I got a UOException thrown from
SE.getNext, for no reason I can see (do not know
how to reproduce).

Regardless of why this condition was encountered,
UOException is not the right exception - that
means that an attempt was made to use methods from
an unsupported DOM version etc. That is not the
case here - the methods normally work fine.

Attaching a patch which at least behaves more
gracefully: prints a diagnostic message and then
returns null, the documented fallback value.
Comment 1 Jesse Glick 2004-01-13 17:01:10 UTC
Created attachment 12863 [details]
Suggested patch to make the bug less onerous (does not fix the bug)
Comment 2 Jesse Glick 2004-01-13 17:03:52 UTC
Created attachment 12864 [details]
Stack trace from exception I encountered once in dev-040109
Comment 3 Milan Kuchtiak 2004-02-27 09:16:17 UTC
Not critical for Promo B.
Comment 4 Jesse Glick 2004-02-27 16:39:30 UTC
At least consider the attached patch for B. Very simple and makes the
symptoms of the bug less evil.
Comment 5 _ pkuzel 2004-07-30 17:07:08 UTC
Applied, thanks Jesse.

SyntaxElement.java
new revision: 1.9
Comment 6 _ pkuzel 2004-08-04 14:09:29 UTC
*** Issue 37872 has been marked as a duplicate of this issue. ***