[arquillian-issues] [JBoss JIRA] (ARQ-1253) Warp: fails to transform static class with no-arg constructor which extends class with no-arg constructor

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Wed Mar 6 19:12:56 EST 2013


    [ https://issues.jboss.org/browse/ARQ-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759228#comment-12759228 ] 

Aslak Knutsen edited comment on ARQ-1253 at 3/6/13 7:11 PM:
------------------------------------------------------------

We remove the child class's Constructors when we create the new Class since they are not needed. We only want to mirror the data over to an object instance not construct a new one. 

Tho we do not do the same for any parent class. So the defaultConstructor of child call the argument constructor of parent and fail.

I have a fix for this using sun.misc.Unsafe. Bypassing any normal Object construction.
                
      was (Author: aslak):
    We remove the child class's Constructors when we create the new Class since they are not needed. We only want to mirror the data over to the new class not construct a new one. 

Tho we do not do the same for any parent class. So the defaultConstructor of child call argument constructor of parent and fail.

I have a fix for this using sun.misc.Unsafe. Bypassing any normal Object construction.
                  
> Warp: fails to transform static class with no-arg constructor which extends class with no-arg constructor
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: ARQ-1253
>                 URL: https://issues.jboss.org/browse/ARQ-1253
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Warp
>    Affects Versions: warp_1.0.0.Alpha2
>            Reporter: Lukáš Fryč
>            Assignee: Aslak Knutsen
>            Priority: Critical
>             Fix For: warp_1.0.0.Beta1
>
>   Original Estimate: 1 day
>  Remaining Estimate: 1 day
>
> Test:
> https://github.com/arquillian/arquillian-extension-warp/blob/master/ftest/src/test/java/org/jboss/arquillian/warp/ftest/inspection/inheritance/TestDifferentClassTypes.java#L81

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