felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre De Rop (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-4876) DM Annotations bnd plugin compatibility with Bndtools 2.4.1 / 3.0.0 versions
Date Mon, 04 May 2015 09:50:06 GMT
Pierre De Rop created FELIX-4876:
------------------------------------

             Summary: DM Annotations bnd plugin compatibility with Bndtools 2.4.1 / 3.0.0
versions
                 Key: FELIX-4876
                 URL: https://issues.apache.org/jira/browse/FELIX-4876
             Project: Felix
          Issue Type: Improvement
          Components: Dependency Manager Annotations
    Affects Versions: org.apache.felix.dependencymanager-r2
            Reporter: Pierre De Rop
            Assignee: Pierre De Rop
             Fix For: org.apache.felix.dependencymanager-r3


The new upcoming bndtools 3.0.0 breaks the Annotation.get(String attribute) API if the attribute
type is a class: the Annotation.get(String attribute) method is now returning a TypeRef instead
of a String if the type of the object is "class".

So, the DM annotation plugin should detect if it is executed by old bndtools 2.4.1, or by
new bndtools 3.0.0:

- with bndtools 2.4.1, the Annotation.get() method returns a String (for an attribute with
type=class), and
this String has the form "Lfull/class/name;", which must be properly parsed in order to get
fqdn class name.

- with bndtools 3.0.0, the Annotation.get() method returns a TypeRef (for an attribute with
type=class), and then the TypeRef.getFQDN() method
can just be used to get the classname.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message