Martin Kouba It is a constant and it is constructed as follows
@Produces |
@RepositoryRoot // Custom qualifier |
public static final Path DOCS_DIR = HOME_DIR.resolve("docs");
|
where `HOME_DIR` is another Path constructed from a String. Let me repeat, the exception is caused by adding `@ApplicationScoped` to the definition above. I don't see how that is related to how the Path instance has been created. What is more, and as I have mentioned already, without `@ApplicationScoped` the direct instance is injected, which is a `UnixPath`; whereas adding `@ApplicationScoped` results in injection of a WELD proxy. My guess is that the proxy does introduce the issue by not correctly returning the same provider than the proxied path instance. |