Skip to content

Commit f61e5ea

Browse files
authored
Merge pull request #296 from dmatej/fixedlog
Fixed exception caused by the log - orb getters are not getters
2 parents 9a7108c + 818fd2f commit f61e5ea

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

orbmain/src/main/java/com/sun/corba/ee/impl/orb/ORBImpl.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,24 +1764,24 @@ private boolean isLocalHost(InetAddress address) {
17641764

17651765
@Override
17661766
@Subcontract
1767-
public boolean isLocalServerId( int subcontractId, int serverId )
1768-
{
1767+
public boolean isLocalServerId(int subcontractId, int serverId) {
1768+
final int psid;
17691769
if (subcontractDebugFlag) {
1770-
int psid = -1;
17711770
if (configData.getPersistentServerIdInitialized()) {
17721771
psid = configData.getPersistentServerId();
1772+
} else {
1773+
psid = -1;
17731774
}
1774-
1775-
isLocalServerIdInfo( subcontractId, serverId,
1776-
getTransientServerId(),
1777-
ORBConstants.isTransient(subcontractId),
1778-
configData.getPersistentServerIdInitialized(), psid ) ;
1775+
isLocalServerIdInfo(subcontractId, serverId, getTransientServerId(),
1776+
ORBConstants.isTransient(subcontractId), configData.getPersistentServerIdInitialized(), psid);
1777+
} else {
1778+
psid = -1;
17791779
}
17801780

1781-
LOG.log(DEBUG, "isLocalServerId: params[subcontractId={0}, serverId={1}], mystate[transientServerId={2},"
1782-
+ " persistentServerId={3}, persistentServerIdInitialized={4}]",
1783-
subcontractId, serverId, getTransientServerId(),
1784-
configData.getPersistentServerId(), configData.getPersistentServerIdInitialized());
1781+
LOG.log(TRACE,
1782+
() -> "isLocalServerId: params[subcontractId=" + subcontractId + ", serverId=" + serverId
1783+
+ "], mystate[transientServerId=" + transientServerId + "," + " persistentServerId=" + psid
1784+
+ ", persistentServerIdInitialized=" + configData.getPersistentServerIdInitialized() + "]");
17851785

17861786
if (subcontractId < ORBConstants.FIRST_POA_SCID || subcontractId > ORBConstants.MAX_POA_SCID) {
17871787
return serverId == getTransientServerId();

0 commit comments

Comments
 (0)