]
Ondrej Zizka reassigned FORGE-2216:
-----------------------------------
Assignee: George Gastaldi
Forge Tests: WARN if _DEFAULT_ addon contains duplicate classes which
are in dependencies, or duplicated classes in dependencies.
---------------------------------------------------------------------------------------------------------------------------------
Key: FORGE-2216
URL:
https://issues.jboss.org/browse/FORGE-2216
Project: Forge
Issue Type: Enhancement
Components: Furnace (Container), Test Harness
Affects Versions: 2.14.0.Final
Reporter: Ondrej Zizka
Assignee: George Gastaldi
If the _DEFAULT_ addon (created by ForgeArchive getDeployment()) contains classes which
duplicate those in dependencies (which is very easy to achieve), then various negative
side effect may occur - e.g. querying for an @Annotation, or querying a Map with classes
as keys, etc etc.
Typically solving these errors is hard work.
Forge, resp. Furnace, should WARN about duplicated classes. Maybe optionally if that
would mean scanning all addons (but I assume that is being done anyway).
In other words:
1) Scan whole _DEFAULT_ addon and for each class, try loading that class by FQCN from
each dependency. If found, then WARN about it.
2) Scan all dependency addons and warn if duplicated FQCN is found.