From 3e3bb5e6a9c0c32ea8eaf3115fe010376dfdaaf6 Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Mon, 15 Apr 2019 18:21:54 +0300 Subject: [PATCH] fix(java-app-template): invoke `app.run()` 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(); } }