Download tasks/codeql_java_benchmark_top30_v2/morefixes-09002f4d38e9ecf8238a/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_java_benchmark_top30_v2/morefixes-09002f4d38e9ecf8238a/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/codeql_java_benchmark_top30_v2/morefixes-09002f4d38e9ecf8238a/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_java_benchmark_top30_v2/morefixes-09002f4d38e9ecf8238a/patch.diff
1.71 kB
| diff --git a/src/main/java/org/jboss/ejb/protocol/remote/EJBSimpleTransactionControl.java b/src/main/java/org/jboss/ejb/protocol/remote/EJBSimpleTransactionControl.java | |
| index af32394..807d5c0 100644 | |
| --- a/src/main/java/org/jboss/ejb/protocol/remote/EJBSimpleTransactionControl.java | |
| +++ b/src/main/java/org/jboss/ejb/protocol/remote/EJBSimpleTransactionControl.java | |
| class EJBSimpleTransactionControl implements SimpleTransactionControl { | |
| throw new SystemException(); | |
| } catch (IOException e) { | |
| throw new SystemException(); | |
| + } finally { | |
| + invocationTracker.remove(invocation); | |
| } | |
| } | |
| diff --git a/src/main/java/org/jboss/ejb/protocol/remote/EJBTransactionOperations.java b/src/main/java/org/jboss/ejb/protocol/remote/EJBTransactionOperations.java | |
| index d41c124..cb110f5 100644 | |
| --- a/src/main/java/org/jboss/ejb/protocol/remote/EJBTransactionOperations.java | |
| +++ b/src/main/java/org/jboss/ejb/protocol/remote/EJBTransactionOperations.java | |
| class EJBTransactionOperations implements RemotingOperations { | |
| throw new XAException(XAException.XAER_RMERR); | |
| } catch (IOException e) { | |
| throw new XAException(XAException.XAER_RMERR); | |
| + } finally { | |
| + invocationTracker.remove(invocation); | |
| } | |
| } | |
| class EJBTransactionOperations implements RemotingOperations { | |
| throw new XAException(XAException.XAER_RMERR); | |
| } catch (IOException | ClassNotFoundException e) { | |
| throw new XAException(XAException.XAER_RMERR); | |
| + } finally { | |
| + invocationTracker.remove(invocation); | |
| } | |
| } | |