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 137853 - loader entries in layer.xml have extra factory entries.
Summary: loader entries in layer.xml have extra factory entries.
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-20 22:26 UTC by _ pcw
Modified: 2015-09-17 13:09 UTC (History)
3 users (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 _ pcw 2008-06-20 22:26:29 UTC
The loader entries in layer.xml for j2ee.ddloaders (J2EE DD files) are fishy.  Specifically, they declare multiple
factories for each mimetype, which just seems wrong.  They also declare duplicate action blocks in some, but not all of
the loader entries.  It seems this could be done more efficiently (and since multiple loader blocks do not declare
actions at all, I suspect that the some or all of the duplicates are not even being used.)

This needs to be cleaned up.
Comment 1 Jaroslav Tulach 2008-06-21 09:38:16 UTC
This probably needs to be fixed, but I had not had enough knowledge to do it myself. The j2ee dd DataLoader 
organization was too confusing for me, so I decided to play on safe note and duplicate the registration of each loader 
in each mimetype. Anyway, feel free to fix it suite your real needs.
Comment 2 Petr Jiricka 2008-06-24 15:27:40 UTC
This is Erno's area.
Comment 3 Erno Mononen 2008-06-24 16:00:45 UTC
There is a lot of code that would need to be cleaned up in j2ee.ddloaders, o.n.m.* and elsewhere in the bad world, but 
what is the justification for making this issue a P2? I'm downgrading to P3, if the performance penalty does indeed 
warrant a P2, then I'd be interested in hearing more on that. 

Some of the actions are duplicated due to issues like #85570, if there is nowadays a better way of accomplishing the 
same I'd be glad to learn more about that.
Comment 4 _ jyothivasa 2008-11-21 01:08:49 UTC
Not planned for 7.0
Comment 5 Andrey Yamkovoy 2009-11-13 02:46:57 UTC
Not planned for 6.8.
Comment 6 Martin Balin 2015-09-17 13:09:30 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.