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 153016 - code completion works wrong in ibatis sqlmap xml
Summary: code completion works wrong in ibatis sqlmap xml
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-12 08:42 UTC by qubicllj
Modified: 2015-09-17 13:17 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 qubicllj 2008-11-12 08:42:50 UTC
The code completion works wrong when i wrote 2nd child element of sqlmap element(root element) after 1st child element
Comment 1 Samaresh Panda 2008-11-17 23:48:29 UTC
Please attach an example XML and schema (if any) for us to verify. Sorry, I've no idea what is ibatis sqlmap xml.
Comment 2 qubicllj 2008-11-18 04:21:05 UTC
for examle:when write code before "<insert.....",the code completion is right,then write code after code "</insert>" the
code completion only show "</sqlmap>" and "insert".

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE sqlMap PUBLIC '-//ibatis.apache.org//DTD SQL Map 2.0//EN' 'http://ibatis.apache.org/dtd/sql-map-2.dtd'>
<sqlMap>
    <insert id="InsertUser" parameterClass="com.jiudao.eam.model.User">
        insert into users(name) values(#name#);
    </insert>
    <select id="SelectAllUsers" resultClass="com.jiudao.eam.model.User">
        select * from users;
    </select>
</sqlMap>
Comment 3 Samaresh Panda 2008-11-18 15:55:46 UTC
Valid bug. Something is wrong with dtd based CC.
Comment 4 Martin Balin 2015-09-17 13:17:19 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.