[ 
https://issues.apache.org/jira/browse/PIG-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alan Gates reassigned PIG-256:
------------------------------

    Assignee: Pi Song

> support non default constructor with variable number of arguments
> -----------------------------------------------------------------
>
>                 Key: PIG-256
>                 URL: https://issues.apache.org/jira/browse/PIG-256
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Ajay Garg
>            Assignee: Pi Song
>            Priority: Minor
>             Fix For: 0.1.0
>
>         Attachments: PIG_256_vararg_instantiation.patch
>
>
> pig does not support non default constructor with variable number of 
> arguments support. In our case we need this because the number of variables 
> that are specified by the user are varying. The fix is simple. Pig calls 
> getConstr("agr1","arg2",...,"argn") and if it doesn't find it throws a 
> noSuchMethodFound exception. In the catch block we just need to add code to 
> check if we can wrap the arg1..n in a String[] and check if a constructor can 
> be found with this signature getConstr(args[]). This would resolve the 
> variable num args issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to