<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Compilation error on PA generated Java source files in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721276#M199809</link>
    <description>Thank you very much Anton -&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your feedback/reply is very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Nov 2018 18:42:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-11-04T18:42:56Z</dc:date>
    <item>
      <title>Compilation error on PA generated Java source files</title>
      <link>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaq-p/721269</link>
      <description>&lt;P&gt;Hi All - &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I get error messages for each independent variables when I compile the java files that are generated automatically out of PA.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;When I run the following statement on the terminal:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&amp;gt;&amp;gt; &lt;STRONG&gt;javac -Xlint:deprecation KxJRT.jar My_Model.java&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I get below errors during the compilation process:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;symbol:class IKxDModellnput &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;location: class SampleModel SampleModel.java:702: error: cannot find symbol&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;private double Kxen_RobustRegression_0_KxVar6( IKxDModellnput ilnput ) {&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/230468-sap-pa-java-compile-error.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;However, when I run the same files using this statement: &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&amp;gt;&amp;gt; javac -classpath KxJRT.jar My_Model.java&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I just get some warnings/notifications regarding some depreciated statements on the source but ultimately it generates a class at the end of the compilation. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The question is: Should I modify the Java file that generated out of PA to get rid of the error messages that is compiled with -Xlint parameter or leave the source code as it is?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Your expert insights on the matter would be greatly appreciated.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Erdal&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaq-p/721269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-05T20:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error on PA generated Java source files</title>
      <link>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721270#M199803</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Aren't you missing the classpath option on the first line ?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 10:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721270#M199803</guid>
      <dc:creator>bertrand_lamy</dc:creator>
      <dc:date>2018-10-08T10:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error on PA generated Java source files</title>
      <link>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721271#M199804</link>
      <description>&lt;P&gt;Hi - &lt;/P&gt;&lt;P&gt;I compiled with -classpath as well. But the result is the same. The result screen -&amp;gt;  &lt;A href="https://answers.sap.com/storage/attachments/234308-javac-xlint-with-classpath.jpg"&gt;javac-xlint-with-classpath.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 07:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721271#M199804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-12T07:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error on PA generated Java source files</title>
      <link>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721272#M199805</link>
      <description>&lt;P&gt;Hello, could you please raise a ticket with SAP Support? Thanks and kind regards Antoine&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 13:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721272#M199805</guid>
      <dc:creator>achab</dc:creator>
      <dc:date>2018-10-25T13:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error on PA generated Java source files</title>
      <link>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721273#M199806</link>
      <description>&lt;P&gt;No, sorry I meant: you should try:&lt;/P&gt;&lt;P&gt;javac -Xlint:deprecation -classpath KxJRT.jar My_Model.java&lt;/P&gt;&lt;P&gt;(-classpath and KxJRT.jar must not be separated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 15:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721273#M199806</guid>
      <dc:creator>bertrand_lamy</dc:creator>
      <dc:date>2018-10-25T15:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error on PA generated Java source files</title>
      <link>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721274#M199807</link>
      <description>&lt;P&gt;Hi there - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried - &lt;/P&gt;&lt;P&gt;javac -Xlint:deprecation -classpath KxJRT.jar My_Model.java&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Notes/Warnings are generated out of this statement. (Pl. check the first shot)&lt;/P&gt;&lt;P&gt;However, when the class is recompiled with -Xlint:unchecked parameter, the outcome of this run is displayed on the second screenshot.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Erdal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/234995-sap-pa-1.jpg"&gt;sap-pa-1.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/234997-sap-pa-2.jpg"&gt;sap-pa-2.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 10:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721274#M199807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-26T10:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error on PA generated Java source files</title>
      <link>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721275#M199808</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;for brevity instead of &lt;EM&gt;-classpath &lt;/EM&gt;a &lt;EM&gt;-cp&lt;/EM&gt; option may be used so final command will become: &lt;EM&gt;javac -Xlint:deprecation -cp KxJRT.jar My_Model.java&lt;/EM&gt;
&lt;/LI&gt;&lt;LI&gt;the warning(s) you see is the result of &lt;EM&gt;-Xlint:deprecation&lt;/EM&gt; analysis meaning that &lt;EM&gt;My_Model.java&lt;/EM&gt; contains calls inside to &lt;EM&gt;some&lt;/EM&gt; deprecated APIs. &lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;"Should I modify the Java file that generated out of PA to get rid of the error messages that is compiled with -Xlint parameter or leave the source code as it is?" &lt;/EM&gt;You shouldn't modify the generated source code, I assume it's better to consult with PA support why the generated code uses deprecated API.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;"when the class is recompiled with -Xlint:unchecked&lt;/EM&gt;"   that's another analysis option, checking for type safety of collection api calls, it doesn't suggest what is deprecated calls actually is. For full list of warning you may run with option &lt;STRONG&gt;-Xlint:all&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 01 Nov 2018 10:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721275#M199808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-01T10:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error on PA generated Java source files</title>
      <link>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721276#M199809</link>
      <description>Thank you very much Anton -&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your feedback/reply is very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Nov 2018 18:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compilation-error-on-pa-generated-java-source-files/qaa-p/721276#M199809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-04T18:42:56Z</dc:date>
    </item>
  </channel>
</rss>

