On 23/09/2015 15:48, Felix Schumacher wrote: > Am 22.09.2015 um 10:47 schrieb r...@apache.org: >> Author: remm >> Date: Tue Sep 22 08:47:52 2015 >> New Revision: 1704483 >> >> URL: http://svn.apache.org/viewvc?rev=1704483&view=rev >> Log: >> Fix test compile. >> >> Modified: >> >> tomcat/tc7.0.x/trunk/test/org/apache/catalina/session/TestStandardSession.java >> >> >> Modified: >> tomcat/tc7.0.x/trunk/test/org/apache/catalina/session/TestStandardSession.java >> >> URL: >> http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/test/org/apache/catalina/session/TestStandardSession.java?rev=1704483&r1=1704482&r2=1704483&view=diff >> >> ============================================================================== >> >> --- >> tomcat/tc7.0.x/trunk/test/org/apache/catalina/session/TestStandardSession.java >> (original) >> +++ >> tomcat/tc7.0.x/trunk/test/org/apache/catalina/session/TestStandardSession.java >> Tue Sep 22 08:47:52 2015 >> @@ -37,7 +37,7 @@ public class TestStandardSession { >> static { >> TEST_MANAGER = new StandardManager(); >> - TEST_MANAGER.setContext(new StandardContext()); >> + TEST_MANAGER.setContainer(new StandardContext()); > Why set a Context as a Container?
Context implements Container. In 7.0.x and earlier Manager (and other components) holds a reference to the Container it is associated with. These components were only ever associated with a Context so in 8.0.x the method was changed from Container to Context. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org