aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1098) BeanRecipe.findMatchingMethods does not support "varargs"
Date Wed, 31 Jan 2018 10:43:00 GMT

    [ https://issues.apache.org/jira/browse/ARIES-1098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16346576#comment-16346576
] 

ASF subversion and git services commented on ARIES-1098:
--------------------------------------------------------

Commit 1822786 from [~gnt] in branch 'aries/trunk'
[ https://svn.apache.org/r1822786 ]

[ARIES-1098] BeanRecipe.findMatchingMethods does not support "varargs"

> BeanRecipe.findMatchingMethods does not support "varargs"
> ---------------------------------------------------------
>
>                 Key: ARIES-1098
>                 URL: https://issues.apache.org/jira/browse/ARIES-1098
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>            Reporter: Martin Lichtin
>            Priority: Major
>
> For example:
> 	<bean id="webServer" class="org.h2.tools.Server" factory-method="runTool"
> 		init-method="start" depends-on="jdbcDataSource">
> 		<argument value="-web" />
> 	</bean>
> with Server.runTool signature:
> public void runTool(String... args)
> gives
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to find a matching
factory method runTool on class org.h2.tools.Server for arguments [-web] when instanciating
bean webServer
> 	at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:318)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:806)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_25]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_25]
> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[7:org.apache.aries.blueprint.core:1.1.0]
> ...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message