-
Bug
-
Resolution: Done
-
Critical
-
2.3.4.Final
-
None
-
None
ResourceMethod::invokeOnTarget calls methodInjector.invoke() and then sets the PostProcessers afterwards. If the method sets the response directly or the executing thread finishes quicker the PostProcessers /Annotations /MessageBodyWriters do not get processed.
Object rtn = null;
try
catch (WebApplicationException wae)
{ prepareResponse(ServerResponse.copyIfNotServerResponse(wae.getResponse())); throw wae; }if (request.isSuspended())
{ AbstractAsynchronousResponse asyncResponse = (AbstractAsynchronousResponse) request.getAsynchronousResponse(); if (asyncResponse == null) return null; asyncResponse.setAnnotations(method.getAnnotations()); asyncResponse.setMessageBodyWriterInterceptors(writerInterceptors); asyncResponse.setPostProcessInterceptors(postProcessInterceptors); return null; }