diff --git a/Lib/java/std_set.i b/Lib/java/std_set.i index 73e0c2cf9..053866bc7 100644 --- a/Lib/java/std_set.i +++ b/Lib/java/std_set.i @@ -96,6 +96,10 @@ class set { public boolean hasNext() { return curr.isNot(end); } + + public void remove() { + throw new java.lang.UnsupportedOperationException(); + } }.init(); } diff --git a/Lib/java/std_unordered_set.i b/Lib/java/std_unordered_set.i index 59726e94d..ddcedf052 100644 --- a/Lib/java/std_unordered_set.i +++ b/Lib/java/std_unordered_set.i @@ -92,6 +92,10 @@ class unordered_set { public boolean hasNext() { return curr.isNot(end); } + + public void remove() { + throw new java.lang.UnsupportedOperationException(); + } }.init(); }