[
https://issues.jboss.org/browse/ARQ-1598?page=com.atlassian.jira.plugin.s...
]
Lukáš Fryč commented on ARQ-1598:
---------------------------------
Workaround is using top-level classes.
----
We need to check whether this fails also with anonymous inner classes. If it's not the
case, then we can simply disallow to process static inner classes (they should be packaged
with deployment):
https://github.com/arquillian/arquillian-extension-warp/blob/1.0.0.Alpha5...
Warp on WildFly: CDI fails to inject into inspection that is inner
static class
-------------------------------------------------------------------------------
Key: ARQ-1598
URL:
https://issues.jboss.org/browse/ARQ-1598
Project: Arquillian
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Extension - Warp
Affects Versions: warp_1.0.0.Alpha5
Environment: WildFly 8.0.0.Beta2-SNAPSHOT
Reporter: Lukáš Fryč
When class is inner static class:
{code}
public class MyTest {
@Test
public void test1() {
Warp....inspect(new MyInspection());
Warp....inspect(new MyInspection()); // fails
}
@Test
public void test2() {
Warp....inspect(new MyInspection()); // fails
}
public static class MyInspection() {
}
}
{code}
the first inspection pass, but all subsequent inspections fails in the scope of one
deployment.
----
I think that is because the class is already loaded in classloader and its scanning might
be cached by Weld.
----
A issue was originally reproduced and reported here:
https://issues.jboss.org/browse/RF-13417
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira