tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Marinkovic (JIRA)" <...@tapestry.apache.org>
Subject [jira] Updated: (TAPESTRY-2647) IOC services bound using a marker behave differently than services with a serviceId thus producing a StackOverflow
Date Sun, 07 Sep 2008 21:32:44 GMT

     [ https://issues.apache.org/jira/browse/TAPESTRY-2647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kristian Marinkovic updated TAPESTRY-2647:
------------------------------------------

    Attachment: test.zip

example maven/eclipse project

> IOC services bound using a marker behave differently than services with a serviceId thus
producing a StackOverflow
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2647
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2647
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.0.14
>            Reporter: Kristian Marinkovic
>         Attachments: test.zip
>
>
> the module class below produces a StackOverflow if i try to call the chain. if i use
a serviceId instead of the marker annotation everything work as expected. it seems, that a
marker annotation does not have the same behaviour as a serviceId. see also the attached maven
project that examplifies the problem.
> public final class StackOverflowModule 
> {
> 	public static void bind(ServiceBinder binder)
> 	{
> 		binder.bind(ChainInterface.class, HelloWorld.class).withMarker(Default.class);
> 	}
> 	
> 	public ChainInterface buildChainInterface(List<ChainInterface> chainItems, ChainBuilder
builder)
> 	{
> 		return builder.build(ChainInterface.class, chainItems);
> 	}
> 	
> 	public void contributeChainInterface(OrderedConfiguration<ChainInterface> chainItems,
> 			@Default ChainInterface helloWorld)
> 	{
> 		chainItems.add("Default", helloWorld);
> 	}
> }

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message