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.
1) create an xhtml file 2) type #{"hello"} expression somewhere 3) add < before the hash character => java.lang.AssertionError at org.netbeans.modules.web.el.ELElement.findNodeAt(ELElement.java:113) at org.netbeans.modules.web.el.completion.ELCodeCompletionHandler.getTargetNode(ELCodeCompletionHandler.java:175) at org.netbeans.modules.web.el.completion.ELCodeCompletionHandler.complete(ELCodeCompletionHandler.java:97)
*** Bug 196550 has been marked as a duplicate of this bug. ***
Created attachment 107105 [details] stacktrace Editing a JSP file
Created attachment 107452 [details] stacktrace I turned Maven Web Application into OSGI bundle and trying JSP editor - messy setup but IDE should not throw an exception.
I cannot reproduce the issue now. Not a high priority issue, downgrading. The problem seems to be in the "sanitized" version of ELExpression. If the expression is not resolved as valid and is sanitized, the assertion may possibly not to be true.
Actually it does happen even in regular Web Application project: * create fresh Web App * change index.jsp to contain for example: <title>JSP Page |${applicationScope} </title> * place editor caret where | is and open code completion. I always get the exception.
Great, thanks, now I can fix it... I wonder why the original test case stopped working?!?!
fixed in web-main#97267100c415
Since we need to integrate to releases clone ASAP I've tested the fix myself and asked Martin Fousek to do the code review.
Reviewed, feel free to integrate. I tried it locally and debug the code in places around this issue, looks safe.
integrated into release70 branch: 50e8fb1e01d0
Verified in rebuilt IDE (from release70). Not marking as verified because I suppose that QE would like perhaps to verify it by themself in RC2.
Integrated into 'main-golden', will be available in build *201104070400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/97267100c415 User: Marek Fukala <mfukala@netbeans.org> Log: #196188 - AssertionError from EL completion
Verified. Dev 201104070400 RC2 201104070802