summaryrefslogtreecommitdiffstats
path: root/sched
diff options
context:
space:
mode:
authormikaelpeltier <mikaelpeltier@google.com>2015-04-15 14:12:45 +0200
committermikaelpeltier <mikaelpeltier@google.com>2015-04-15 14:12:45 +0200
commit0188efaf95b25829b4da7c9b315a106fdbace73a (patch)
tree3e39d423a9e63c41d507f4f2e3318ca90f1d945c /sched
parent0fd686f8f2daf4fd06246df70359cc21fd8f6100 (diff)
downloadtoolchain_jack-0188efaf95b25829b4da7c9b315a106fdbace73a.zip
toolchain_jack-0188efaf95b25829b4da7c9b315a106fdbace73a.tar.gz
toolchain_jack-0188efaf95b25829b4da7c9b315a106fdbace73a.tar.bz2
Fix bug during PropertyIdException reporting
- Create PropertyIdException for each causes by avoiding to generate several times the same error. Change-Id: I433fbddd9519154678190be7dc109414c3c872d0
Diffstat (limited to 'sched')
-rw-r--r--sched/src/com/android/sched/util/config/PropertyIdException.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sched/src/com/android/sched/util/config/PropertyIdException.java b/sched/src/com/android/sched/util/config/PropertyIdException.java
index 85d1e8b..f821277 100644
--- a/sched/src/com/android/sched/util/config/PropertyIdException.java
+++ b/sched/src/com/android/sched/util/config/PropertyIdException.java
@@ -53,7 +53,8 @@ public class PropertyIdException extends ConfigurationException implements HasLo
Iterator<ChainedException> iter = causes.iterator();
iter.next();
while (iter.hasNext()) {
- new PropertyIdException(propertyId, location, iter.next()).putAsLastExceptionOf(this);
+ new PropertyIdException(propertyId, location, (Throwable) iter.next()).putAsLastExceptionOf(
+ this);
}
}