[Bug #917] Fixed bug changing visibility of PlanningData default constructor to public.

BTW, added information about class failing in exception.

FEA: ItEr72S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-03-11 10:49:11 +01:00
parent e9fefc7543
commit 2edce46f27
2 changed files with 4 additions and 3 deletions

View file

@ -51,7 +51,7 @@ public class PlanningData extends BaseEntity {
private BigDecimal progressByNumHours;
protected PlanningData() {
public PlanningData() {
}

View file

@ -33,10 +33,10 @@ import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.Map.Entry;
import org.apache.commons.lang.Validate;
import org.hibernate.proxy.HibernateProxy;
@ -365,7 +365,8 @@ public class DeepCopy {
throw new RuntimeException(e);
} catch (NoSuchMethodException e) {
throw new IllegalArgumentException(
"could not invoke default no-args constructor", e);
"could not invoke default no-args constructor for "
+ klass, e);
}
try {
return constructor.newInstance();