IDEMPIERE-3350 Accounting Processor GL postings to "secondary" schema unreliable. Fix concurrency issue with accounting schema cache.

This commit is contained in:
Heng Sin Low 2017-05-17 22:26:07 +08:00
parent c5aca27ae1
commit 6581080b38
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public class MAcctSchema extends X_C_AcctSchema
* @param trxName optional trx
* @return Array of AcctSchema of Client
*/
public static MAcctSchema[] getClientAcctSchema (Properties ctx, int AD_Client_ID, String trxName)
public static synchronized MAcctSchema[] getClientAcctSchema (Properties ctx, int AD_Client_ID, String trxName)
{
// Check Cache
Integer key = new Integer(AD_Client_ID);