-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
JSR356 Encoder#init is not called when created on demand #1100
Comments
Cannot replicate this. Do you have a sample project that can replicate this? |
Unable to Replicate. Feel free to reopen if you have a reproduction case. |
I'm encountering this in 9.4.18.v20190429. It seems very similar to #425. Jetty constructs and initializes (calls Working on providing a sample project soon. |
@ericljiang interesting discovery. reopened. |
@lachlan-roberts do you recall any changes on I cannot seem to replicate this. |
@joakime not that I can recall, I don't think I've touched encoders in 9.4. |
…lled Signed-off-by: Lachlan Roberts <[email protected]>
…oders Signed-off-by: Lachlan Roberts <[email protected]>
…erLifeCycle Issue #1100 - ensure init and destroy are always called on JSR356 Encoders
The fix for this has been merged into 9.4.x with PR #4987 and will be available in a 9.4.31 release. |
I have created a BaseMessage class and 3 sub classes wich can be converted by one generic Encoder<BaseMessage> encoder.
Jetty correctly creates encoders for my subclasses but the init methods of the created Encoders are not called.
The reason seems to be in EncoderFactory#getWrapperFor implementation where the on demand wrapper creation doesn't call the Encoder#init method after creation.
Testet with Jetty 9.3.14.v20161028
The text was updated successfully, but these errors were encountered: