[ 
https://issues.apache.org/jira/browse/DRILL-4491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15186227#comment-15186227
 ] 

ASF GitHub Bot commented on DRILL-4491:
---------------------------------------

Github user jaltekruse commented on the pull request:

    https://github.com/apache/drill/pull/418#issuecomment-194049783
  
    Is there a way to ask Jackson to look at a POJO and give you what it 
considers to be the serializable fields? This isn't quite the right fix because 
it is valid to have private members in a class and only have some of the 
serialized and deserialized by Jackson based on gettters/setters. This would 
expose the non-serializable fields as options.


> FormatPluginOptionsDescriptor requires FormatPluginConfig fields to be public
> -----------------------------------------------------------------------------
>
>                 Key: DRILL-4491
>                 URL: https://issues.apache.org/jira/browse/DRILL-4491
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Aditya Kishore
>            Assignee: Aditya Kishore
>            Priority: Minor
>             Fix For: 1.7.0
>
>
> The code uses {{getField()}} instead of {{getDeclaredField()}}, which returns 
> only the public fields.
> {code:title=FormatPluginOptionsDescriptor.java:165|borderStyle=solid}
> Field field = pluginConfigClass.getField(paramDef.name);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to