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 76060 - DD API does not allow support for web 2.5
Summary: DD API does not allow support for web 2.5
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: pslechta
URL:
Keywords:
: 118838 146693 (view as bug list)
Depends on: 152452
Blocks:
  Show dependency tree
 
Reported: 2006-05-08 01:27 UTC by Pavel Buzek
Modified: 2009-07-28 21:51 UTC (History)
1 user (show)

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 Pavel Buzek 2006-05-08 01:27:00 UTC
In web-app_2_5.xsd FilterMapping and ServletMapping should work with String[]
instead of String. The XSD we have in nb is altered to work with String bcs the
DD API cannot support String[]. Schema2Beans generates the methods with String
return type for 2_4 and with String[] return type for 2_5. There cannot be 2
methods in API with the same signature and different return type.

To fix this problem we will likely require a change in schema2beans to allow
overriding get/set method names for a property. The we could override the
property name for 2_5 (getServletMapping2(), for example) to and put code into
mdd to implement the API methods by delegating to getServletMappings2().
Comment 1 Martin Grebac 2006-05-08 08:31:05 UTC
There's also metadata-provided attribute (on web-app, ejb and appclient) access
missing.
Comment 2 Pavel Buzek 2006-05-08 18:34:16 UTC
thanks for reminder, Martine.
Comment 3 Erno Mononen 2007-08-22 15:34:58 UTC
Is there currently a use case that requires this? If not, I would downgrade this to P4.
Comment 4 Pavel Buzek 2007-08-22 18:23:20 UTC
I do not understand the question. Does the API work for 2.5 web xml? Can you edit 2.5 web.xml in DD editor? I not know
if there is any UI or other code that needs to use specifically the new attributes.
Comment 5 Erno Mononen 2007-08-24 17:21:50 UTC
The editor does work for 2.5 web.xml, it just doesn't use these 2.5 specific features (like multiple url-patterns in a 
single servlet-mapping element).
Comment 6 Erno Mononen 2007-10-15 08:50:41 UTC
*** Issue 118838 has been marked as a duplicate of this issue. ***
Comment 7 Jiri Prox 2008-04-11 01:14:45 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 8 Erno Mononen 2008-10-01 11:52:12 UTC
*** Issue 146693 has been marked as a duplicate of this issue. ***
Comment 9 pslechta 2009-07-28 21:51:07 UTC
During 6.8 development, the problem was fixed. FilterMapping + ServletMapping support more than one value. Also
metadata-provided attribute is supported. DD object model is OK, so closing this issue as fixed.

There are some other issues filed for wizards/GUI editors that do not use extensions of DD object model yet (e.g. Issue
163396)...