New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Section 11.5.2 refers to an unknown class #295
Comments
This was unused in the code base so I removed it. Thanks for picking this up. Will bring this back in the first maintenance release. |
@gregrluck I was discussing this one with @jhoeller and we're wondering why this is part of the spec at all. If you've misused the annotation model, what does a standard exception bring concretely? We'd rather remove that section or rephrase it so that an exception must be thrown but not specifying a concrete exception type. |
Answering from a maintenance point of view: Rewording from "should" to "must" calls for proper TCK tests. That can break existing implementations and causes work for an ambiguous situation, but that has no relevance for working application code. If the "should" stays, then at least the RI should have the behavior that we endorse in the spec. Considering this, I am in favor for:
@snicoll : Since you are the initial and only requester, what is your preferred resolution? |
The spec does but I see what you mean. Just to make sure I understand, your option is to do both of the items in the bullet list, right? That's what I'd do: remove the exception and any reference in the spec and reword it to states that implementations must throw defined exceptions. Thanks! |
Yes!
Careful. That formulation is to strict. It says that an implementation must throw an exception but maybe it has enough information to continue and only log a warning. Personally, I like the "fail fast and hard" approach but implementations can have different preference. Strict formulations also require tests. I am going with RFC-like wording: normative/strict => must, recommendation => should. Let's see whether somebody else has another opinion on it, otherwise I think we can go forward. |
On page 121 the standard says:
Proposed change:
Rationale:
|
Section 11.5.2 defines what happens when more than one annotations are placed on the same method. In this case a
CacheAnnotationConfigurationException
should be thrown but this exception is not available anywhere.The text was updated successfully, but these errors were encountered: