google / google/guice

Unable to extract generic's type from proxies created by Guice

Open
#1,318 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
12.7k
Forks
1.7k
Avg merge
11m
Merged PRs (30d)
2

Description

Originally, this bug (or, possible, lack of functionality) was reported on RESTEasy's bug tracker, but I've been asked to ask for assistance here, too.

Original bug report: https://issues.redhat.com/browse/RESTEASY-2484

There you can find details and demo app demonstrating an issue, but in essence, it seems that AssistedInject **in combination with** Interceptors generates proxy classes from which in runtime RESTEasy can't extract generic types from method parameters. What gives me hope that this is just a bug rather than unfixable type-erasure related problem is that both AssistedInject and Interceptors generate "valid" proxies if used **alone**. Problem exists only if they are used in combination (see demo app and comments in original bug report).

Note: I'm not RESTEasy developer, I merely found and reported the issue. I'm really not sure if this is RESTEasy's issue or Guice's, but I've been asked to ask here for assistance, so I'm asking. I can provide testing of any kind, but I'm not an expert on RESTEasy internals.

In any case, thanks for **any** assistance in advance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.