Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
maven-bundle-plugin-2.0.0
-
None
Description
Generic information present in the bytecode is not considered when MANIFEST.MF is generated. In the following example, the package "a" is not included in the Import-Package list, which causes an Exception at runtime (TypeNotPresentException)
package b;
import java.lang.reflect.*;
import a.A;
public class B {
java.util.List<A> list;
public static void main(String[] args) {
for(Field f : B.class.getDeclaredFields()) {
ParameterizedType type = (ParameterizedType)f.getGenericType();
for(Type t : type.getActualTypeArguments())
}
}
}