You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Victor Antonovich (JIRA)" <ji...@apache.org> on 2009/07/02 17:45:47 UTC

[jira] Created: (FELIX-1296) @Property annotation processing broken when options used

@Property annotation processing broken when options used
--------------------------------------------------------

                 Key: FELIX-1296
                 URL: https://issues.apache.org/jira/browse/FELIX-1296
             Project: Felix
          Issue Type: Bug
          Components: Maven SCR Plugin
    Affects Versions: maven-scr-plugin-1.2.0
            Reporter: Victor Antonovich


Using @Property annotation with 'options' field used (with enclosed @PropertProperty annotations) lead to Maven build error:
...
[INFO] [scr:scr {execution: generate-scr-descriptor}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException: java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag$1.options(PropertyTag.java:65)
	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag.getParameters(PropertyTag.java:246)
	at org.apache.felix.scrplugin.PropertyHandler.processProperty(PropertyHandler.java:176)
	at org.apache.felix.scrplugin.PropertyHandler.processProperties(PropertyHandler.java:357)
[more stacktrace entries...]


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


[jira] Closed: (FELIX-1296) @Property annotation processing broken when options used

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed FELIX-1296.
-----------------------------------


> @Property annotation processing broken when options used
> --------------------------------------------------------
>
>                 Key: FELIX-1296
>                 URL: https://issues.apache.org/jira/browse/FELIX-1296
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.2.0
>            Reporter: Victor Antonovich
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.4.0
>
>         Attachments: property_options.patch
>
>
> Using @Property annotation with 'options' field set (with enclosed @PropertyOption annotations) lead to Maven build error:
> ...
> [INFO] [scr:scr {execution: generate-scr-descriptor}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ClassCastException: java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
> 	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag$1.options(PropertyTag.java:65)
> 	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag.getParameters(PropertyTag.java:246)
> 	at org.apache.felix.scrplugin.PropertyHandler.processProperty(PropertyHandler.java:176)
> 	at org.apache.felix.scrplugin.PropertyHandler.processProperties(PropertyHandler.java:357)
> [more stacktrace entries...]

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


[jira] Resolved: (FELIX-1296) @Property annotation processing broken when options used

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved FELIX-1296.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: maven-scr-plugin-1.4.0

Hi Victor,

thanks for the patch - I've applied a modified version which handles both cases (single value, multi values) and correctly handles string, references etc.  in Revision: 790706
If this fixes your problem, please close this bug

Many thanks!
 

> @Property annotation processing broken when options used
> --------------------------------------------------------
>
>                 Key: FELIX-1296
>                 URL: https://issues.apache.org/jira/browse/FELIX-1296
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.2.0
>            Reporter: Victor Antonovich
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.4.0
>
>         Attachments: property_options.patch
>
>
> Using @Property annotation with 'options' field set (with enclosed @PropertyOption annotations) lead to Maven build error:
> ...
> [INFO] [scr:scr {execution: generate-scr-descriptor}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ClassCastException: java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
> 	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag$1.options(PropertyTag.java:65)
> 	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag.getParameters(PropertyTag.java:246)
> 	at org.apache.felix.scrplugin.PropertyHandler.processProperty(PropertyHandler.java:176)
> 	at org.apache.felix.scrplugin.PropertyHandler.processProperties(PropertyHandler.java:357)
> [more stacktrace entries...]

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


[jira] Updated: (FELIX-1296) @Property annotation processing broken when options used

Posted by "Victor Antonovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Antonovich updated FELIX-1296:
-------------------------------------

    Description: 
Using @Property annotation with 'options' field set (with enclosed @PropertyOption annotations) lead to Maven build error:
...
[INFO] [scr:scr {execution: generate-scr-descriptor}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException: java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag$1.options(PropertyTag.java:65)
	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag.getParameters(PropertyTag.java:246)
	at org.apache.felix.scrplugin.PropertyHandler.processProperty(PropertyHandler.java:176)
	at org.apache.felix.scrplugin.PropertyHandler.processProperties(PropertyHandler.java:357)
[more stacktrace entries...]


  was:
Using @Property annotation with 'options' field used (with enclosed @PropertProperty annotations) lead to Maven build error:
...
[INFO] [scr:scr {execution: generate-scr-descriptor}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException: java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag$1.options(PropertyTag.java:65)
	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag.getParameters(PropertyTag.java:246)
	at org.apache.felix.scrplugin.PropertyHandler.processProperty(PropertyHandler.java:176)
	at org.apache.felix.scrplugin.PropertyHandler.processProperties(PropertyHandler.java:357)
[more stacktrace entries...]



> @Property annotation processing broken when options used
> --------------------------------------------------------
>
>                 Key: FELIX-1296
>                 URL: https://issues.apache.org/jira/browse/FELIX-1296
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.2.0
>            Reporter: Victor Antonovich
>         Attachments: property_options.patch
>
>
> Using @Property annotation with 'options' field set (with enclosed @PropertyOption annotations) lead to Maven build error:
> ...
> [INFO] [scr:scr {execution: generate-scr-descriptor}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ClassCastException: java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
> 	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag$1.options(PropertyTag.java:65)
> 	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag.getParameters(PropertyTag.java:246)
> 	at org.apache.felix.scrplugin.PropertyHandler.processProperty(PropertyHandler.java:176)
> 	at org.apache.felix.scrplugin.PropertyHandler.processProperties(PropertyHandler.java:357)
> [more stacktrace entries...]

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


[jira] Assigned: (FELIX-1296) @Property annotation processing broken when options used

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler reassigned FELIX-1296:
---------------------------------------

    Assignee: Carsten Ziegeler

> @Property annotation processing broken when options used
> --------------------------------------------------------
>
>                 Key: FELIX-1296
>                 URL: https://issues.apache.org/jira/browse/FELIX-1296
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.2.0
>            Reporter: Victor Antonovich
>            Assignee: Carsten Ziegeler
>         Attachments: property_options.patch
>
>
> Using @Property annotation with 'options' field set (with enclosed @PropertyOption annotations) lead to Maven build error:
> ...
> [INFO] [scr:scr {execution: generate-scr-descriptor}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ClassCastException: java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
> 	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag$1.options(PropertyTag.java:65)
> 	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag.getParameters(PropertyTag.java:246)
> 	at org.apache.felix.scrplugin.PropertyHandler.processProperty(PropertyHandler.java:176)
> 	at org.apache.felix.scrplugin.PropertyHandler.processProperties(PropertyHandler.java:357)
> [more stacktrace entries...]

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


[jira] Updated: (FELIX-1296) @Property annotation processing broken when options used

Posted by "Victor Antonovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Antonovich updated FELIX-1296:
-------------------------------------

    Attachment: property_options.patch

Proposed patch.

> @Property annotation processing broken when options used
> --------------------------------------------------------
>
>                 Key: FELIX-1296
>                 URL: https://issues.apache.org/jira/browse/FELIX-1296
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.2.0
>            Reporter: Victor Antonovich
>         Attachments: property_options.patch
>
>
> Using @Property annotation with 'options' field used (with enclosed @PropertProperty annotations) lead to Maven build error:
> ...
> [INFO] [scr:scr {execution: generate-scr-descriptor}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ClassCastException: java.util.ArrayList cannot be cast to [Lorg.apache.felix.scr.annotations.PropertyOption;
> 	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag$1.options(PropertyTag.java:65)
> 	at org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag.getParameters(PropertyTag.java:246)
> 	at org.apache.felix.scrplugin.PropertyHandler.processProperty(PropertyHandler.java:176)
> 	at org.apache.felix.scrplugin.PropertyHandler.processProperties(PropertyHandler.java:357)
> [more stacktrace entries...]

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