Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-1011

Java methods should be declared to throw WiredTigerException

    • Type: Icon: Task Task
    • Resolution: Done
    • WT2.4.1
    • Affects Version/s: None
    • Component/s: 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@mongodb.com Donald Anderson
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: