3 Replies Latest reply: Aug 22, 2011 5:07 PM by EJP Branched to a new discussion. RSS

    Getting "Not a statement" errow while compiling standard .java file

    user2018586
      Hello,

      I extracted an existing Oracle standard CO.class file from the system and decompiled it (using JAD) to a .java file to review the contents. Now when trying to compiling it (using javac command) on the same file, I'm getting the error "Not a statement" and ""exception2;". I did not change anything on the file (it is a standard Oracle .class file). I do not receive any errors in the appilcation when loading this CO.

      public void callJdbcRollBack(OAPageContext oapagecontext, OAWebBean oawebbean)
      {
      OracleCallableStatement oraclecallablestatement;
      String s = (String)oapagecontext.getTransactionValue("HrCommonFlowNameOab");
      boolean flag = s != null && s.equals("HrCommonInsertOab");
      String s1 = (String)oapagecontext.getTransactionValue("HrFlowName");
      boolean flag1 = "HrNewHireFlow".equals(s1);
      String s2 = "begin rollback to apply_change_pay_hire_txn; end;";
      oraclecallablestatement = (OracleCallableStatement)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().createCallableStatement(s2.toString(), 1);
      try
      {
      oraclecallablestatement.execute();
      }
      catch(SQLException sqlexception)
      {
      throw new OAException(sqlexception.getLocalizedMessage());
      }
      catch(Exception exception1)
      {
      throw OAException.wrapperException(exception1);
      }
      try
      {
      oraclecallablestatement.close();
      }
      catch(Exception exception)
      {
      throw OAException.wrapperException(exception);
      }
      break MISSING_BLOCK_LABEL_158;
      Exception exception2;
           exception2; _*<----THIS IS THE LINE NUMBER BEING RETURNED THAT CONTAINS THE ERROR*_
      try
      {
      oraclecallablestatement.close();
      }
      catch(Exception exception3)
      {
      throw OAException.wrapperException(exception3);
      }
      throw exception2;
      oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().removeValue("NewUserRefresh");
      return;
      }


      Any thoughts on why this does not compile from a .java to a .class file when this is a standard Oracle file?