[ 
https://issues.apache.org/jira/browse/PIG-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574218#action_12574218
 ] 

Pi Song commented on PIG-126:
-----------------------------

Johannes,
Firstly, thank a lot for helping me track down this problem. Your patch has 
helped me scope down the possibilities.

I have found out that in order to refer to a static inner class, we have to say 
"OuterClass1$InnerClass2()" as opposed to the intuitive  
"OuterClass1.InnerClass2()" (This apparently also happens when you do 
instantiate using reflection). 

So that in your patch when you use LoadFuncClass.getName(), you get the right 
name all the time.

This, therefore, may not be a bug. Though personally I prefer 
"OuterClass1.InnerClass2()".  Should we make both forms usable?

> custom storage ( LOAD with USING) doesn't work with inner classes
> -----------------------------------------------------------------
>
>                 Key: PIG-126
>                 URL: https://issues.apache.org/jira/browse/PIG-126
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.1.0
>            Reporter: Pi Song
>            Priority: Minor
>         Attachments: PIG-126-test.patch
>
>
> It might be trivial but this has held me up for quite a while.

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