Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

Interfaces are not importable. #96

Open
enocom opened this issue Dec 12, 2019 · 1 comment
Open

Interfaces are not importable. #96

enocom opened this issue Dec 12, 2019 · 1 comment

Comments

@enocom
Copy link
Contributor

enocom commented Dec 12, 2019

For example:

(cdk/import [[IPrincipal] :from "@aws-cdk/aws-iam"])

The library throws the following exception:

1. Caused by java.lang.IllegalArgumentException
   No matching clause: interface

                  impl.clj:  176  stedi.jsii.alpha.impl/get-class
                  impl.clj:  170  stedi.jsii.alpha.impl/get-class
                import.clj:  102  stedi.jsii.alpha.import/import-fqn
                import.clj:   97  stedi.jsii.alpha.import/import-fqn
                 alpha.clj:   36  stedi.jsii.alpha/import-fqn
                 alpha.clj:   32  stedi.jsii.alpha/import-fqn
                 alpha.clj:   84  stedi.cdk.alpha/import
                 alpha.clj:   67  stedi.cdk.alpha/import
...
@lvh
Copy link
Contributor

lvh commented Jan 16, 2020

This also happens with some structs that are secretly interfaces, like https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cloudfront.Behavior.html.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants