[jboss-jira] [JBoss JIRA] Created: (JBAS-8071) HDScanner's setScanEnabled() method Fails to enable scanning on first invocation
Mike Clark (JIRA)
jira-events at lists.jboss.org
Fri Jun 4 18:20:25 EDT 2010
HDScanner's setScanEnabled() method Fails to enable scanning on first invocation
---------------------------------------------------------------------------------
Key: JBAS-8071
URL: https://jira.jboss.org/browse/JBAS-8071
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Other
Affects Versions: 6.0.0.M3
Reporter: Mike Clark
Assignee: Mike Clark
he org.jboss.system.server.profileservice.hotdeploy.HDScanner bean's setScanEnabled() method fails when setting to "true" if it was previously set to "false" When enabling, the setter calls the start():
public synchronized void setScanEnabled(boolean scanEnabled)
{
if (scanEnabled == true && activeScan == null && scanExecutor != null)
{
start();
}
else if (scanEnabled == false && activeScan != null)
{
stop();
}
this.scanEnabled = scanEnabled;
}
However, if the scanEnabled member variable (this.scanEnabled) is false this call does nothing:
public void start()
{
if (scanEnabled)
{
activeScan = scanExecutor.scheduleWithFixedDelay(this, 0, scanPeriod, TimeUnit.MILLISECONDS);
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list