From 47ff44829b98afcec3bcc78da783d75f054c558e Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Mon, 15 Apr 2019 20:29:18 +0300 Subject: [PATCH] fix(java-app-template): invoke `app.run()` (#2300) Since the java client for jsii does not cleanly shutdown the jsii-runtime process, the implicit "app.run()" does not work, and the app cannot be synthesized. Fixes #2289 Related: awslabs/jsii#456 --- .../app/java/src/main/java/com/myorg/HelloApp.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/HelloApp.java b/packages/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/HelloApp.java index f2bc52391683e..2d1d977c28319 100644 --- a/packages/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/HelloApp.java +++ b/packages/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/HelloApp.java @@ -10,5 +10,8 @@ public static void main(final String argv[]) { new HelloStack(app, "hello-cdk-1"); new HelloStack(app, "hello-cdk-2"); + + // required until https://github.com/awslabs/jsii/issues/456 is resolved + app.run(); } }