From 481ebfab45e70fbac6c39ef70078dee271a16c94 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 24 Jan 2017 07:40:22 +0000 Subject: Enhance %extend to extend a class with static template methods --- Examples/test-suite/java/extend_template_method_runme.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Examples/test-suite/java') 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"); } } } -- cgit v1.2.1