-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to instantiate a new object for FQN @aws-cdk/aws-ec2.VpcNetworkRef: null #680
Comments
@dsilvasc I think you are right. Seems like an issue with the fact that the method return type is abstract. Tracking in aws/jsii#220 |
eladb
pushed a commit
to aws/jsii
that referenced
this issue
Sep 12, 2018
Generate a $proxy class for all abstract classes and use them when the return type is abstract, similar to interface proxies. This change also adds "abstract: true" to all interface members, so the proxy generator can treat interfaces and classes polymorphically. Added a compliance test "returnAbstract" which verifies this behavior. Fixes #220 Related to #223 (.NET) Related to aws/aws-cdk#680 (require jsii update)
eladb
pushed a commit
to aws/jsii
that referenced
this issue
Sep 13, 2018
Generate a $proxy class for all abstract classes and use them when the return type is abstract, similar to interface proxies. This change also adds "abstract: true" to all interface members, so the proxy generator can treat interfaces and classes polymorphically. Added a compliance test "returnAbstract" which verifies this behavior. Fixes #220 Related to #223 (.NET) Related to aws/aws-cdk#680 (require jsii update)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm using the JVM CDK and I'm running into a JsiiException when calling
VpcNetworkRef.import_
.Minimal example in Scala:
Running it yields:
The exception is
InstantiationExceptionConstructorAccessorImpl
and that line in JsiiEngine.java is:where
ctor
isprotected software.amazon.awscdk.services.ec2.VpcNetworkRef(software.amazon.jsii.JsiiObject$InitializationMode)
.The class
VpcNetworkRef
is abstract, so that might be the issue.The text was updated successfully, but these errors were encountered: