1 Reply Latest reply on Aug 29, 2017 3:36 AM by Fairoz-Oracle

    CompileCommand Question

    0bfc412e-2d3f-47f1-ba94-61b5bfd577fd

      Is it possible to ignore the compilation error in the add method below using the CompileCommand option?

       

      I've tried `javac -J-XX:CompileCommand=exclude,HelloWorld.add HelloWorld.java`.

       

      public class HelloWorld {

       

          public static void main (String[] arg) {

              System.out.println(add());

          }

       

          public static int add () {

              weofijw;

              return 0;

          }

      }

       

      Thanks.