// the Wilcard specification states that wildcard classes
// should have an empty default constructor. If they
// don't have;it it is a RUNES IMPLEMENTATION ERROR
catch (IllegalAccessException noConstructor) {
throw new Error(noConstructor.toString() + "/" + adviceSignature[i]);
}
catch (InstantiationException wrongConstructor) {
throw new Error(wrongConstructor.toString());
}
actualParams[i] = oscarWild;
}
else {
actualParams[i] = crtLocParam;
}
}
// 3. create an action with the event stuff
try {
advMethod.invoke(adviceThis, actualParams);
}
catch (IllegalArgumentException wrongArgs) {
throw new Error("MethodCut.joinPointAction: " + wrongArgs + ". Actual arguments" +
Arrays.asList(actualParams) + " Expected arguments: " + advMethod);
}
catch (IllegalAccessException wrongMethod) {
throw new IllegalAccessException("Advice method (" + advMethod + ") not visible");
}
catch(NullPointerException noReceiver) {
throw new Error("MethodCut.joinPointAction:" + noReceiver.toString());
}
}