Remove the variable initializer for tableID and tableName. We must not use variable initializer for the 2 variable since that will overwrite the initialization done in the initPO method ( Execution Sequence: GenericPO Constructor > PO Constructor > initPO() > GenericPO instance variable initializer ).

This commit is contained in:
Heng Sin Low 2013-11-04 21:29:39 +08:00
parent e79d02b392
commit a4ec500a56
1 changed files with 6 additions and 3 deletions

View File

@ -81,9 +81,12 @@ public class GenericPO extends PO {
super(new PropertiesWrapper(ctx, tableName), 0, trxName, rs);
}
private int tableID = 0;
private String tableName = null;
/**
* We must not use variable initializer here since the 2 variable below will be initialize inside
* the initPO method called by the parent constructor.
*/
private int tableID;
private String tableName;
/** Load Meta Data */
protected POInfo initPO(Properties ctx) {