3 Replies Latest reply on Jan 31, 2012 11:55 AM by drkstr_1

    Compiler sees delete function name as delete operator

    egrubaugh

      I am trying to call the 'delete' method on a POJO service with:

       

      serviceProxy.delete(...)

       

      This fails to compile with the errors:


      Error: Syntax error: expecting identifier before delete.

          [compc]          serviceProxy.delete(...);

          [compc]                       ^

      Error: Syntax error: expecting identifier before rightparen.

          [compc]          serviceProxy.delete(...);

          [compc]                                 ^

       

      It seems as if the compiler is detecting the call to the delete method as the delete operator instead. Is there a way to fix this or will I need to change the method name on the service?