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

Xingcan Cui commented on FLINK-31021:
-------------------------------------

[~libenchao] Thanks for the comments. 

I'm a bit busy these days. Will try to replace the static methods with 
non-static ones for {{flink-protobuf}} if no one works on this before I get 
some time.

> JavaCodeSplitter doesn't split static method properly
> -----------------------------------------------------
>
>                 Key: FLINK-31021
>                 URL: https://issues.apache.org/jira/browse/FLINK-31021
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 1.14.4, 1.15.3, 1.16.1
>            Reporter: Xingcan Cui
>            Priority: Minor
>
> The exception while compiling the generated source
> {code:java}
> cause=org.codehaus.commons.compiler.CompileException: Line 3383, Column 90: 
> Instance method "default void 
> org.apache.flink.formats.protobuf.deserialize.GeneratedProtoToRow_655d75db1cf943838f5500013edfba82.decodeImpl(foo.bar.LogData)"
>  cannot be invoked in static context,{code}
> The original method header 
> {code:java}
> public static RowData decode(foo.bar.LogData message){{code}
> The code after split
>  
> {code:java}
> Line 3383: public static RowData decode(foo.bar.LogData message){ 
> decodeImpl(message); return decodeReturnValue$0; } 
> Line 3384:
> Line 3385: void decodeImpl(foo.bar.LogData message) {{code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to