Java methods should be declared to throw WiredTigerException

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • WT2.4.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None

      In Java SWIG, any method that returns a non-zero int throws a WiredTigerException, but that exception is not in the method signature.

      I think this is the needed SWIG, which could be macro-ized:

      %javaexception("com.wiredtiger.db.WiredTigerException")
           __wt_connection::some_function { $action; }
      

      There will undoubtedly be some fallout with the few Java tests we have to accommodate the exceptions.

              Assignee:
              Donald Anderson
              Reporter:
              Donald Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: