You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Xingcan Cui (Jira)" <ji...@apache.org> on 2023/02/11 03:29:00 UTC
[jira] [Created] (FLINK-31021) JavaCodeSplitter doesn't split static method properly
Xingcan Cui created FLINK-31021:
-----------------------------------
Summary: 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.16.1, 1.14.4
Reporter: Xingcan Cui
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)