compiler construction - Issue regarding Java Compilation in Hudson -
let have transformation class extending commondomain class.
and create daoutil inserting default parameter insert.
public static void populatevaluesforinsert(commondomain domain, long userid) { java.util.date today = new java.util.date(); domain.setcreatedby(userid); domain.setcreateddate(today); domain.setupdatedby(userid); domain.setupdateddate(today); } public class transformation extends commondomain { //private static final long serialversionuid = -2800564185309854734l; private long id; private long scenariotype; private string description; //.... set here ... } public class commondomain implements serializable { private static final long serialversionuid = 1l; public static final integer default_baseline_id = 0; public static final string date_format_default = "mm/dd/yyyy"; public static final string date_format_with_time = "mm/dd/yyyy hh:mm:ss"; public long maxrowcount; private string rolename; private date createddate; private date updateddate; private long createdby; private long updatedby; //..get set here }
when run junit testing, it's working in local. running testing in hudson resulting error:
populatevaluesforinsert(com.domain.commondomain,java.lang.long) in com.utils.daoutil cannot applied (com.domain.transformation,java.lang.long)
i use jdk 1.5.0_14 in local , jdk 1.5.0_21 in hudson.
any idea why error happen?
i don't know hudson's internals, maybe there's sort of cache holds old version of of class files.
Comments
Post a Comment