Skip to content
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

whiteboard servlet runtime now forwards all properties #47

Merged
merged 9 commits into from
Sep 19, 2024
Merged

Conversation

juergen-albert
Copy link
Contributor

fixes #46

timothyjward and others added 8 commits February 26, 2024 14:37
The whiteboard implementation must create dynamic classes for each extension service to allow multiple instances of the same class to be registered. The existing generics handling was limited, and could not correctly represent unbound type variables, wildcards, nested generics, or reification of variables declared in super types. This commit enhances the generics processing in an attempt to cover all cases. Fixes #39

Signed-off-by: Tim Ward <timothyjward@apache.org>
Fix issues with generics in extension services
I identified a missing test case where a Type Variable changes name in the generics declaration of an intermediate super class, and also where the Type Variable use is nested inside another generic declaration. Once added these tests showed up some further weaknesses which I have attempted to fix by establishing a context mapping of contract interface to implementing type and type to super type. This constrains the search through the type information and ensures that we only match type information that is relevant in the current context.

Signed-off-by: Tim Ward <timothyjward@apache.org>
Signed-off-by: Tim Ward <timothyjward@apache.org>
- removed unused dependency

Thanks for reporting!

Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
- removed unnused imports
- removed other warnings

Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
fixes #46

Signed-off-by: Juergen Albert <j.albert@data-in-motion.biz>
@juergen-albert juergen-albert merged commit 3a5d80e into main Sep 19, 2024
9 of 10 checks passed
@juergen-albert juergen-albert deleted the issue46 branch September 19, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Whiteboard configuration properties are not propagated to the services
4 participants