[arquillian-issues] [JBoss JIRA] (ARQGRA-310) initialized public field of page object is reinitialized to null

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Tue Nov 12 05:44:05 EST 2013


     [ https://issues.jboss.org/browse/ARQGRA-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukáš Fryč updated ARQGRA-310:
------------------------------

    Fix Version/s: 2.0-Tracking
                       (was: 2.0.1.Final)

    
> initialized public field of page object is reinitialized to null
> ----------------------------------------------------------------
>
>                 Key: ARQGRA-310
>                 URL: https://issues.jboss.org/browse/ARQGRA-310
>             Project: Arquillian Graphene
>          Issue Type: Bug
>            Reporter: Jiří Štefek
>            Assignee: Juraj Húska
>            Priority: Critical
>             Fix For: 2.0-Tracking
>
>
> When one has a page object with initialized public field like this:
> https://github.com/richfaces/richfaces-qa/blob/212c0bf1c97de103e4fb381319a01a1d63317efb/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/a4jRepeat/MatrixPage.java#L51
> and he uses it in test:
> https://github.com/richfaces/richfaces-qa/blob/212c0bf1c97de103e4fb381319a01a1d63317efb/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/a4jRepeat/TestMatrix.java#L60
> then he gets:
> https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/RichFaces/view/5.0/job/richfaces-5.0-metamer--server-compatibility-core/12/CONTAINER=jbossas-managed-7-1,jdk=java17_default,label=RHEL6/testReport/junit/org.richfaces.tests.metamer.ftest.a4jRepeat/TestMatrix/testInitialStateOfMatrix/
> The cause is, that the field is reinitialized to null in that @Page object.
> There is an easy workaround: do not use public fields in @Page objects.

--
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



More information about the arquillian-issues mailing list