summaryrefslogtreecommitdiff
path: root/Examples/test-suite/java
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2017-01-24 07:40:22 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2017-01-24 19:01:43 +0000
commit481ebfab45e70fbac6c39ef70078dee271a16c94 (patch)
treecb8aac19a7ae4b0d9e6a597c0e03644e7a88de0c /Examples/test-suite/java
parent83519138e8ca5daf61592b8222d6b8f279ed9b8f (diff)
downloadswig-481ebfab45e70fbac6c39ef70078dee271a16c94.tar.gz
Enhance %extend to extend a class with static template methods
Diffstat (limited to 'Examples/test-suite/java')
-rw-r--r--Examples/test-suite/java/extend_template_method_runme.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/Examples/test-suite/java/extend_template_method_runme.java b/Examples/test-suite/java/extend_template_method_runme.java
index cf21cd7b1..d6cdc88df 100644
--- a/Examples/test-suite/java/extend_template_method_runme.java
+++ b/Examples/test-suite/java/extend_template_method_runme.java
@@ -32,6 +32,8 @@ public class extend_template_method_runme {
if (!ret_string.equals("hello there"))
throw new RuntimeException("string failed " + ret_string);
}
+ if (ExtendMe.static_method(123) != 123)
+ throw new RuntimeException("static_method failed");
}
{
TemplateExtend em = new TemplateExtend();
@@ -52,6 +54,8 @@ public class extend_template_method_runme {
if (!ret_string.equals("hello there"))
throw new RuntimeException("string failed " + ret_string);
}
+ if (TemplateExtend.static_template_method(123) != 123)
+ throw new RuntimeException("static_template_method failed");
}
}
}