SGF-565 - Stackoverflow error when the 'locators' attribute is specified in any of the XCacheApplication annotations.
This commit is contained in:
@@ -687,7 +687,7 @@ public abstract class AbstractCacheConfiguration implements BeanClassLoaderAware
|
|||||||
/* (non-Javadoc) */
|
/* (non-Javadoc) */
|
||||||
void setLocators(String locators) {
|
void setLocators(String locators) {
|
||||||
this.locators = locators;
|
this.locators = locators;
|
||||||
setMcastPort(DEFAULT_MCAST_PORT);
|
this.mcastPort = DEFAULT_MCAST_PORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String locators() {
|
protected String locators() {
|
||||||
@@ -714,7 +714,7 @@ public abstract class AbstractCacheConfiguration implements BeanClassLoaderAware
|
|||||||
|
|
||||||
void setMcastPort(Integer mcastPort) {
|
void setMcastPort(Integer mcastPort) {
|
||||||
this.mcastPort = mcastPort;
|
this.mcastPort = mcastPort;
|
||||||
setLocators(DEFAULT_LOCATORS);
|
this.locators = DEFAULT_LOCATORS;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Integer mcastPort() {
|
protected Integer mcastPort() {
|
||||||
|
|||||||
@@ -62,7 +62,10 @@ public class PeerCacheApplicationIntegrationTests {
|
|||||||
assertThat(echo.get("Test"), is(equalTo("Test")));
|
assertThat(echo.get("Test"), is(equalTo("Test")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PeerCacheApplication(name = "PeerCacheApplicationIntegrationTests", logLevel = "warn")
|
//@EnableLocator
|
||||||
|
//@PeerCacheApplication(name = "PeerCacheApplicationIntegrationTests",
|
||||||
|
// logLevel = "warn", locators="localhost[10334]")
|
||||||
|
@PeerCacheApplication(name = "PeerCacheApplicationIntegrationTests", logLevel="warn")
|
||||||
static class PeerCacheApplicationConfiguration {
|
static class PeerCacheApplicationConfiguration {
|
||||||
|
|
||||||
@Bean(name = "Echo")
|
@Bean(name = "Echo")
|
||||||
|
|||||||
Reference in New Issue
Block a user