aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1923/gh326/pkg/BusinessService.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs1923/gh326/pkg/BusinessService.java')
-rw-r--r--tests/bugs1923/gh326/pkg/BusinessService.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs1923/gh326/pkg/BusinessService.java b/tests/bugs1923/gh326/pkg/BusinessService.java
new file mode 100644
index 000000000..10d98400f
--- /dev/null
+++ b/tests/bugs1923/gh326/pkg/BusinessService.java
@@ -0,0 +1,18 @@
+package pkg;
+
+public class BusinessService {
+
+ @HandleSourceException(message="42")
+ public BusinessDto doSomething() throws TargetException {
+ return new BusinessDao<BusinessDto>().doSomething();
+ }
+
+
+public static void main(String []argv) throws TargetException {
+try {
+ new BusinessService().doSomething();
+} catch (TargetException te) {
+ System.out.println(te.getMessage());
+}
+}
+}