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 129020 - p-namespace items pop up just after attribute value
Summary: p-namespace items pop up just after attribute value
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Rohan Ranade
URL:
Keywords:
Depends on: 129165
Blocks:
  Show dependency tree
 
Reported: 2008-03-03 15:31 UTC by Andrei Badea
Modified: 2008-04-25 13:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Badea 2008-03-03 15:31:03 UTC
Invoke the code completion for

<bean id="foo" class="FooAbstractController" |/>

where | is the caret position. The attribute items from schema-based completion pop up, but the p-namespace properties
do not. Perhaps related to the following issue. Invoke the code completion for

<bean id="foo"| class="FooAbstractController"/>

The p-namespace items pop up, but the schema-based attributes do not. The p-namespace items should not pop up there,
since they would generate illegal XML.
Comment 1 Rohan Ranade 2008-03-05 08:28:23 UTC
Incorrect completion state being reported by CompletionContext
Comment 2 Rohan Ranade 2008-03-05 10:39:27 UTC
Fixed in changeset ce7b9445c426. Note: Completion still does not work for cases like:
<bean id="foo" p:|/>
(| is the location of the cursor). This is due to the XML infrastructure returning an error token (see 129165)
Comment 3 Andrei Badea 2008-03-05 12:59:56 UTC
That case is covered by issue 129027, so I suggest closing this one.
Comment 4 Rohan Ranade 2008-03-05 13:08:22 UTC
Agreed.
Comment 5 Andrei Badea 2008-03-29 17:16:37 UTC
Now not working for 

<bean id="foo" p:|

Probably because the check if the caret offset is at token boundary when the current token is whitespace. Removing that
check makes the namespace p-namespace items pop up even for

<bean id="foo"|

Since the items incorrectly popping up has higher impact that them not popping up at all, I am removing the check.
Please review.

732e89b985d9
Comment 6 Rohan Ranade 2008-04-04 10:38:31 UTC
Fixed in changeset bd1af3939a07