Details
-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
Description
Right now I have to do this:
@Message(id = 28, value = "An unexpected protocol error occurred") XAException protocolErrorXA(@Property int errorCode); // ... then later ... throw Log.log.protocolErrorXA(XAException.XAER_RMFAIL);
I'd rather be able to do this:
@Message(id = 28, value = "An unexpected protocol error occurred") @Property(name = "errorCode", intValue = XAException.XAER_RMFAIL) XAException protocolErrorXA(); // ... then later ... throw Log.log.protocolErrorXA();
The same annotation (@Property) could be reused by making it multi-valued (i.e. invisible wrapper annotation) and adding in defaulted xxxValue parameters (primitive types, Class<XX>, and String) which are rejected when applied directly to a method parameter.