History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16337
Type: Bug Bug
Status: Open Open
Assignee: Dmitry Avdeev
Reporter: Taras Tielkes
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

error highlighting in web.xml not properly updated

Created: 14 Nov 07 00:49   Updated: 22 Nov 07 03:30
Component/s: J2EE.Web

File Attachments: 1. Zip Archive minimal2.zip (13 kb)

Image Attachments:

1. screenshot-1.jpg
(54 kb)

Build: 7,549


 Description  « Hide
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">

  <context-param>
    <param-name>foo</param-name>
    <param-value>bar</param-value>
  </context-param>
  
</web-app>

1) Select (using Ctrl-W) the whole <context-param> block.
2) Duplicate it (using Ctrl-D)
3) Warning shown "Context param with such name already exists"
4) Change name of second context-param to "foo2"
5) Observed bug: "duplicate name" highlighting is still shown.



 All   Comments   Work Log   Change History      Sort Order:
Dmitry Avdeev - 19 Nov 07 16:26
I cannot reproduce it. Could you attach your test project?

Taras Tielkes - 22 Nov 07 03:30
I'm not sure it will help, but I've attached the minimal project that I've used to successfully reproduce this (using #7562).

Following these steps I can easily reproduce:
1) Select whole <context-param> block using Ctrl-W
2) Duplicate it with Ctrl-D
3) Now both <param-name> values will be highlighted with "Context Param with such name already exists" error. Both the old as well as the newly duplicated one will have the error mark.
4) Now simply append a "2" on the name of the new block.

Error highlight is correctly removed from new block (name is now unique), but it's not removed from original block.