Skip to content

Commit 47ff448

Browse files
author
Elad Ben-Israel
authored
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: aws/jsii#456
1 parent d72806b commit 47ff448

File tree

1 file changed

+3
-0
lines changed
  • packages/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg

1 file changed

+3
-0
lines changed

packages/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/HelloApp.java

+3
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ public static void main(final String argv[]) {
1010

1111
new HelloStack(app, "hello-cdk-1");
1212
new HelloStack(app, "hello-cdk-2");
13+
14+
// required until https://github.com/awslabs/jsii/issues/456 is resolved
15+
app.run();
1316
}
1417
}

0 commit comments

Comments
 (0)