Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMissing @Injectable if @Resource has name which contains / (slash) #532
Comments
This comment has been minimized.
This comment has been minimized.
The "/" character is supported in the Any reason why your Resources are using |
This comment has been minimized.
This comment has been minimized.
I think "/" is valid for name. For examle EJB 3.0 and EJB 3.1 application bindings overview from IBM contains examples where slash is used in
and
I don't want change |
This comment has been minimized.
This comment has been minimized.
Ok. I settled on what's probably a better solution: to fall back on matching the annotated field name, when no injectable is found which matches the |
jmockit version 1.40
I have project where are used
@Resource(name = "xxx/XXX")
. I am not able create@Injectable
for this resource (Missing@Injectable
for field). This is the same problem like #359 .I think the solution for this problem is update method
jmockit1/main/src/mockit/internal/injection/InjectionPoint.java
Line 76 in f4d60f3
and add conversion for "/" as delimiter.