SGF-565 - Stackoverflow error when the 'locators' attribute is specified in any of the XCacheApplication annotations.

(cherry picked from commit 61d23e3892b4d6d02eeebf6d456f3d6843d5d078)
Signed-off-by: John Blum <jblum@pivotal.io>
This commit is contained in:
John Blum
2016-11-09 09:40:54 -08:00
parent 4d29f01abe
commit 8bc5d89b8d
2 changed files with 6 additions and 3 deletions

View File

@@ -686,7 +686,7 @@ public abstract class AbstractCacheConfiguration implements BeanClassLoaderAware
/* (non-Javadoc) */
void setLocators(String locators) {
this.locators = locators;
setMcastPort(DEFAULT_MCAST_PORT);
this.mcastPort = DEFAULT_MCAST_PORT;
}
protected String locators() {
@@ -713,7 +713,7 @@ public abstract class AbstractCacheConfiguration implements BeanClassLoaderAware
void setMcastPort(Integer mcastPort) {
this.mcastPort = mcastPort;
setLocators(DEFAULT_LOCATORS);
this.locators = DEFAULT_LOCATORS;
}
protected Integer mcastPort() {

View File

@@ -58,7 +58,10 @@ public class PeerCacheApplicationIntegrationTests {
assertThat(echo.get("Test")).isEqualTo("Test");
}
@PeerCacheApplication(name = "PeerCacheApplicationIntegrationTests", logLevel = "warn")
//@EnableLocator
//@PeerCacheApplication(name = "PeerCacheApplicationIntegrationTests",
// logLevel = "warn", locators="localhost[10334]")
@PeerCacheApplication(name = "PeerCacheApplicationIntegrationTests", logLevel="warn")
static class PeerCacheApplicationConfiguration {
@Bean("Echo")