Summary: | [assist][javadoc] eternal loop | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Tom Hofmann <eclipse> | ||||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | critical | ||||||||
Priority: | P3 | ||||||||
Version: | 3.2 | ||||||||
Target Milestone: | 3.2 M3 | ||||||||
Hardware: | PC | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Tom Hofmann
2005-10-28 08:29:01 EDT
Created attachment 28915 [details] vm_dump.txt A vm dump at the time that code assist was gone in a neverending loop. Slightly different main thread stack than the stack in comment 0, but similar. Created attachment 28916 [details] TreeLineTracker.java File that shows the behavior. Steps to reproduce: - enable auto-activation, set '@' as autoactivation character for Javadoc assist - open the cu in the Java editor (preferably within the org.eclipse.text project) - go to the javadoc comment of the field 'offset_hint'. I reads: /** * The line offset of the line last queried with <code>node_by_offset</code>. */ - delete the reference to node_by_offset, including the surrounding <code> tag - at the same location, we want to insert a @link reference to the node_by_offset method: - type { - type @ > boom - the completion engine never returns Problem comes from a potential issue in CompletionScanner (see bug 114115). However, it's a little bit dangerous to change this behavior few days before 3.2 M3 delivery... So, I'll fix it temporarily in CompletionJavadocParser by overriding readTokenAndConsume() method to avoid this kind of issue but will remove it as soon as bug 114115 will be fixed... Test cases added in JavadocCompletionParserTest Verified for 3.2 M3 using build I20051031-0010 |