m_aroundAdviceNames = new String[advices.size()];
m_aroundAdviceIndexes = new AdviceInfo[advices.size()];
int i = 0;
for (Iterator it = advices.iterator(); it.hasNext(); i++) {
try {
NameIndexTuple tuple = (NameIndexTuple) it.next();
m_aroundAdviceNames[i] = tuple.getName();
m_aroundAdviceIndexes[i] = tuple.getIndex();
} catch (ClassCastException e) {
throw new RuntimeException("advice list must only contain AdviceIndexTuples");
}
}
}