[JBoss JIRA] (ARQ-1598) Warp on WildFly: CDI fails to inject into inspection that is inner static class
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1598?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč commented on ARQ-1598:
---------------------------------
The reproduced commited to Warp ftests:
https://github.com/lfryc/arquillian-extension-warp/tree/ARQ-1598-warp-wil...
> 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č
> Fix For: warp_1.0.0.Alpha6
>
>
> 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
> ----
> Exception and cause:
> {code}
> java.lang.RuntimeException: Could not inject members
> at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectClass(CDIInjectionEnricher.java:135)
> at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.enrich(CDIInjectionEnricher.java:78)
> at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.warp.impl.server.test.LifecycleTestEnrichmentWatcher.rememberFieldValue
> {code}
> {code}
> Caused by: java.lang.IllegalArgumentException: Can not set org.richfaces.ui.region.RegionBean field org.richfaces.ui.region.AbstractRegionTest$SetupExecute.region to org.richfaces.ui.region.AbstractRegionTest$SetupExecute
> at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
> at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
> at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:55)
> at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:75)
> at java.lang.reflect.Field.set(Field.java:741)
> at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:94)
> at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:358)
> at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:369)
> at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)
> at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:60)
> at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)
> at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
> at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)
> at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:90)
> at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectNonContextualInstance(CDIInjectionEnricher.java:145)
> {code}
--
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
10 years, 6 months
[JBoss JIRA] (ARQ-1598) Warp on WildFly: CDI fails to inject into inspection that is inner static class
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1598?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated ARQ-1598:
----------------------------
Git Pull Request: https://github.com/lfryc/arquillian-extension-warp/tree/ARQ-1598-warp-wil...
> 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č
> Fix For: warp_1.0.0.Alpha6
>
>
> 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
> ----
> Exception and cause:
> {code}
> java.lang.RuntimeException: Could not inject members
> at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectClass(CDIInjectionEnricher.java:135)
> at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.enrich(CDIInjectionEnricher.java:78)
> at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.warp.impl.server.test.LifecycleTestEnrichmentWatcher.rememberFieldValue
> {code}
> {code}
> Caused by: java.lang.IllegalArgumentException: Can not set org.richfaces.ui.region.RegionBean field org.richfaces.ui.region.AbstractRegionTest$SetupExecute.region to org.richfaces.ui.region.AbstractRegionTest$SetupExecute
> at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
> at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
> at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:55)
> at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:75)
> at java.lang.reflect.Field.set(Field.java:741)
> at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:94)
> at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:358)
> at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:369)
> at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)
> at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:60)
> at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)
> at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
> at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)
> at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:90)
> at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectNonContextualInstance(CDIInjectionEnricher.java:145)
> {code}
--
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
10 years, 6 months
[JBoss JIRA] (ARQ-1598) Warp on WildFly: CDI fails to inject into inspection that is inner static class
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1598?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated ARQ-1598:
----------------------------
Description:
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
----
Exception and cause:
{code}
java.lang.RuntimeException: Could not inject members
at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectClass(CDIInjectionEnricher.java:135)
at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.enrich(CDIInjectionEnricher.java:78)
at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.warp.impl.server.test.LifecycleTestEnrichmentWatcher.rememberFieldValue
{code}
{code}
Caused by: java.lang.IllegalArgumentException: Can not set org.richfaces.ui.region.RegionBean field org.richfaces.ui.region.AbstractRegionTest$SetupExecute.region to org.richfaces.ui.region.AbstractRegionTest$SetupExecute
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:55)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:75)
at java.lang.reflect.Field.set(Field.java:741)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:94)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:358)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:369)
at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)
at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:60)
at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)
at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:90)
at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectNonContextualInstance(CDIInjectionEnricher.java:145)
{code}
was:
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
> 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č
> Fix For: warp_1.0.0.Alpha6
>
>
> 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
> ----
> Exception and cause:
> {code}
> java.lang.RuntimeException: Could not inject members
> at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectClass(CDIInjectionEnricher.java:135)
> at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.enrich(CDIInjectionEnricher.java:78)
> at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.warp.impl.server.test.LifecycleTestEnrichmentWatcher.rememberFieldValue
> {code}
> {code}
> Caused by: java.lang.IllegalArgumentException: Can not set org.richfaces.ui.region.RegionBean field org.richfaces.ui.region.AbstractRegionTest$SetupExecute.region to org.richfaces.ui.region.AbstractRegionTest$SetupExecute
> at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
> at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
> at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:55)
> at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:75)
> at java.lang.reflect.Field.set(Field.java:741)
> at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:94)
> at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:358)
> at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:369)
> at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)
> at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:60)
> at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)
> at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
> at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)
> at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:90)
> at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectNonContextualInstance(CDIInjectionEnricher.java:145)
> {code}
--
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
10 years, 6 months
[JBoss JIRA] (ARQ-1598) Warp on WildFly: CDI fails to inject into inspection that is inner static class
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1598?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated ARQ-1598:
----------------------------
Fix Version/s: warp_1.0.0.Alpha6
> 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č
> Fix For: warp_1.0.0.Alpha6
>
>
> 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
10 years, 6 months
[JBoss JIRA] (ARQ-1598) Warp on WildFly: CDI fails to inject into inspection that is inner static class
by Lukáš Fryč (JIRA)
[ 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
10 years, 6 months
[JBoss JIRA] (ARQ-1598) Warp on WildFly: CDI fails to inject into inspection that is inner static class
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1598?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated ARQ-1598:
----------------------------
Description:
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
was:
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
}
}
{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
> 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
10 years, 6 months
[JBoss JIRA] (ARQ-1598) Warp on WildFly: CDI fails to inject into inspection that is inner static class
by Lukáš Fryč (JIRA)
Lukáš Fryč created ARQ-1598:
-------------------------------
Summary: 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
}
}
{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
10 years, 6 months
[JBoss JIRA] (ARQ-1597) Provide APE-BOM for easier dependency setup
by Bartosz Majsak (JIRA)
Bartosz Majsak created ARQ-1597:
-----------------------------------
Summary: Provide APE-BOM for easier dependency setup
Key: ARQ-1597
URL: https://issues.jboss.org/browse/ARQ-1597
Project: Arquillian
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Extension - Persistence
Reporter: Bartosz Majsak
Assignee: Bartosz Majsak
BOM will help importing all required deps for APE in the controlled, yet simple manner.
--
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
10 years, 6 months
[JBoss JIRA] (ARQ-1596) GlassFish Remote/Managed force JAX-RS 1.0
by Aslak Knutsen (JIRA)
Aslak Knutsen created ARQ-1596:
----------------------------------
Summary: GlassFish Remote/Managed force JAX-RS 1.0
Key: ARQ-1596
URL: https://issues.jboss.org/browse/ARQ-1596
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: GlassFish Containers
Affects Versions: glassfish_1.0.0.CR4
Reporter: Aslak Knutsen
Priority: Critical
The GlassFish Remote and Managed containers use Jersey 1.x to communicate with the Admin REST API.
* Jersey changed package from com.sun to org.glassfish between 1.x and 2.x
* Jersey core bundles the JAX-RS 1.0 apis
This case some issues when you want to test JAX-RS 2.0 features on the client side using GlassFish 4.
You can't exclude the Jersey libs exposed and replace them with Jersey 2.0 because the package names changed.. And you can't really get JAX-RS 2.0 on ClassPath because Jersey 1.0 bundles the 1.0 APIs..
We need to replace the communication with the Admin API with something that can't interfere with the Container / User classpath.
--
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
10 years, 6 months