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:
parent
e79d02b392
commit
a4ec500a56
|
@ -81,9 +81,12 @@ public class GenericPO extends PO {
|
||||||
super(new PropertiesWrapper(ctx, tableName), 0, trxName, rs);
|
super(new PropertiesWrapper(ctx, tableName), 0, trxName, rs);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int tableID = 0;
|
/**
|
||||||
|
* We must not use variable initializer here since the 2 variable below will be initialize inside
|
||||||
private String tableName = null;
|
* the initPO method called by the parent constructor.
|
||||||
|
*/
|
||||||
|
private int tableID;
|
||||||
|
private String tableName;
|
||||||
|
|
||||||
/** Load Meta Data */
|
/** Load Meta Data */
|
||||||
protected POInfo initPO(Properties ctx) {
|
protected POInfo initPO(Properties ctx) {
|
||||||
|
|
Loading…
Reference in New Issue