PDA

View Full Version : ContextHandler have a bug


single
08-31-2005, 01:57 AM
In the inner class "DescendantContextInstantiator" of class "ContextHandler", the GetContextConstructor Method is :

private sealed class DescendantContextInstantiator : ContextInstantiator {
protected override ConstructorInfo GetContextConstructor() {
return ContextType.GetConstructor(new Type[] {
typeof (string[]),
typeof (IApplicationContext)});
}
}


But the constructor of class XmlApplicationContext is :
public XmlApplicationContext(
IApplicationContext parentContext,
params string[] configurationLocations) {}


so, the section 3.16. "Service Locator access" of reference document is not available.

Rick Evans
08-31-2005, 01:00 PM
Hiya

Yes, thats a bona-fide bug.

I have committed a fix to the CVS HEAD, and have created a JIRA issue to track the issue to its resolution. The issue will be resolved when unit / integration tests are in place to actually test the logic of the ContextHandler class (definitely before the 1.0 final release in two weeks).

http://opensource2.atlassian.com/projects/spring/browse/SPRNET-176

Thanks for spotting this prior to the 1.0 final release.

Ciao
Rick

Rick Evans
09-15-2005, 02:29 PM
Hi

Just a pingback to say that this issue (http://opensource2.atlassian.com/projects/spring/browse/SPRNET-176) has been resolved for the 1.0 final release (http://sourceforge.net/project/showfiles.php?group_id=106751&package_id=115147) that went out yesterday.

Thanks again
Rick