bundle-plugin generates Import-Package for method return types even when 
returned object is not used
----------------------------------------------------------------------------------------------------

                 Key: FELIX-945
                 URL: https://issues.apache.org/jira/browse/FELIX-945
             Project: Felix
          Issue Type: Bug
    Affects Versions: maven-bundle-plugin-1.4.3
         Environment: generic
            Reporter: Sahoo


It is probably a bug in bnd, but it probably also needs a fix in bundle plugin 
in a sense that a new version of bnd needs to be integrated to fix the issue. 
My class does this:
 void foo(javax.print.Doc foo) throws Exception {
  foo.getAttributes();
 }

As you can see, it just calls javax.print.Doc.getAttributes(), but ignores the 
returned object, which in this case is of type javax.print.attribute. Yet, the 
generated Import-Package contained javax.print.attribute package. A complete 
test case is attached here with.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to