summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2022-10-15 00:51:58 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2022-10-15 14:57:30 +0100
commit4c86f45c54fbeffc43cd56e9c973aabb97841634 (patch)
tree065b0f9264c0028683135d49eecf4ea2bc793c3c /Lib
parent1c70dbdb6c23a64c58c55ce1e509b908e972eabb (diff)
downloadswig-4c86f45c54fbeffc43cd56e9c973aabb97841634.tar.gz
Fix for Java 7 - std::set and std::unordered_set
Diffstat (limited to 'Lib')
-rw-r--r--Lib/java/std_set.i4
-rw-r--r--Lib/java/std_unordered_set.i4
2 files changed, 8 insertions, 0 deletions
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();
}