<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div><b>Bug description</b></div><div>The code in jdwpTransport.h has syntax error.</div><div>For example, use `g++ -c jdwpTransport.h` to compile it, this error message will be produced:</div><div>-----------------------------------------------------------------------</div><div><div><font face="黑体">jdwpTransport.h:266:9: error: expected identifier before 'return'</font></div><div><font face="黑体">         return functions->SetTransportConfiguration(this, config);</font></div><div><font face="黑体">         ^~~~~~</font></div><div><font face="黑体">jdwpTransport.h:266:9: error: expected ',' or '...' before 'return'</font></div><div><font face="黑体">jdwpTransport.h:266:66: error: expected ')' before ';' token</font></div><div><font face="黑体">         return functions->SetTransportConfiguration(this, config);</font></div><div><font face="黑体">                                                                  ^</font></div><div><font face="黑体">jdwpTransport.h:267:5: error: expected ';' after struct definition</font></div><div><font face="黑体">     }</font></div><div><font face="黑体">     ^</font></div><div><font face="黑体">jdwpTransport.h:273:1: error: expected declaration before '}' token</font></div><div><font face="黑体"> } /* extern "C" */</font></div><div><font face="黑体"> ^</font></div><div>------------------------------------------------------------------------</div></div><div><br></div><div><b>Bug fix</b></div><div>The bug is caused by the wrong signature of method `SetTransportConfiguration(jdwpTransportEnv* env,`.</div><div>So, I correct the method signature to `SetTransportConfiguration(jdwpTransportConfiguration *config)`.</div><div><br></div><div><b>Git diff</b></div><div><b>-------------------------------------------------------------------</b></div><div><div style=""><font face="黑体" style="">diff --git a/src/jdk.jdwp.agent/share/native/include/jdwpTransport.h b/src/jdk.jdwp.agent/share/native/include/jdwpTransport.h</font></div><div style=""><font face="黑体">index cdbd04d429c..642d167a230 100644</font></div><div style=""><font face="黑体">--- a/src/jdk.jdwp.agent/share/native/include/jdwpTransport.h</font></div><div style=""><font face="黑体">+++ b/src/jdk.jdwp.agent/share/native/include/jdwpTransport.h</font></div><div style=""><font face="黑体">@@ -262,7 +262,7 @@ struct _jdwpTransportEnv {</font></div><div style=""><font face="黑体">     }</font></div><div style=""><font face="黑体"><br></font></div><div style=""><font face="黑体">     /*  SetTransportConfiguration added in JDWPTRANSPORT_VERSION_1_1 */</font></div><div style=""><font face="黑体">-    jdwpTransportError SetTransportConfiguration(jdwpTransportEnv* env,</font></div><div style=""><font face="黑体">+    jdwpTransportError SetTransportConfiguration(jdwpTransportConfiguration *config) {</font></div><div style=""><font face="黑体">         return functions->SetTransportConfiguration(this, config);</font></div><div style=""><font face="黑体" style="">     }</font></div><div style="font-weight: bold;">----------------------------------------------------------------------</div></div><div><br></div>