You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Java: method overloads are not generated (regression) #233
changed the title [-]Java: method overloads are not generated, at least for ctors (regression)[/-][+]Java: method overloads are not generated (regression)[/+]on Sep 17, 2018
One thing I see already is that in the constructor of Bucket, props is not modelled as optional, despite it carries a default value. This is a bug in the jsii compiler. I am almost certain the issue for Bucket.grantRead is the same.
Activity
[-]Java: method overloads are not generated, at least for ctors (regression)[/-][+]Java: method overloads are not generated (regression)[/+]Fix java init template
RomainMuller commentedon Sep 17, 2018
Looking.
RomainMuller commentedon Sep 17, 2018
One thing I see already is that in the constructor of
Bucket,propsis not modelled asoptional, despite it carries a default value. This is a bug in thejsiicompiler. I am almost certain the issue forBucket.grantReadis the same.fix(cdk): temporary fix to java "cdk init" template (#732)
rix0rrr commentedon Sep 17, 2018
We should prohibit overloads at the jsii level anyway.
Golang doesn't support them, for example.
rix0rrr commentedon Sep 17, 2018
Nor Rust, should we ever want to target that.
RomainMuller commentedon Sep 17, 2018
They're not really overrides per the model... We're making overrides without the trailing optional arguments to make Javaists' lives nicer.
eladb commentedon Sep 17, 2018
Exactly. So languages that do not support them can only generate the method and allow nulls to be passed for optional arguments
fix(jsii): Defaulted parameters were not rendered as optional
fix(jsii): Defaulted parameters were not rendered as optional
rix0rrr commentedon Sep 17, 2018
Oh I see, overloads as an implementation mechanism. That's fine.
fix(jsii): Defaulted parameters were not rendered as optional (#234)
fix: dotnet abstract classes should have proxy implementations
v0.7.6 (#239)
v0.9.2
v0.9.2 (#749)
fix(cdk): temporary fix to java "cdk init" template (aws#732)
v0.9.2 (aws#749)