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 133210 - java.lang.AssertionError when press enter after /**
Summary: java.lang.AssertionError when press enter after /**
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-18 15:45 UTC by Petr Pisl
Modified: 2011-09-05 09:28 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
The AssertionError (2.51 KB, text/plain)
2008-04-18 15:46 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-04-18 15:45:49 UTC
This is reproducible only in trunk full build. This is not reproducible when you build just php cluster.

Create a php file and function with parameters like

function user($name) {
            
}

When you write /** and press enter you obtain AssertionError.
Comment 1 Petr Pisl 2008-04-18 15:46:52 UTC
Created attachment 60418 [details]
The AssertionError
Comment 2 Petr Pisl 2008-04-18 15:47:34 UTC
This is not reproducible in release61-php.
Comment 3 Jan Lahoda 2008-04-21 16:34:44 UTC
Parsing under document lock is not allowed (to prevent deadlocks). GSF, to my knowledge, does not directly support
documentation generators (i.e. "/**<Enter>"), and I do not think this can be properly fixed in the language plugin
(without having own kit, etc.). I have workarounded the problem in PHP by delaying the generation of the documentation,
but this is quite ugly:
http://hg.netbeans.org/main/rev/845ae3d8b89e

In Java, the doc. generator runs inside the InsertBreakAction, but outside the document atomic lock.
Comment 4 Torbjorn Norbye 2008-07-21 19:35:00 UTC
This is a feature not yet supported by GSF. It is included in the TODO list for GSF (see the Keystroke handler section
of http://wiki.netbeans.org/GsfIssues).  Not a P2 bug for 6.5.
Comment 5 David Strupl 2009-01-14 14:35:53 UTC
Moving from ruby/GSF to editor/CSL. Step one: assign to myself ;-)
Comment 6 David Strupl 2009-01-14 14:44:23 UTC
Step 2: trying to make the owner not myself but the owner of the subcomponent.