jsii-rosetta icon indicating copy to clipboard operation
jsii-rosetta copied to clipboard

jsii-rosetta: Duplicate Comments on CSharp and Java

Open DanielMSchmidt opened this issue 3 years ago • 0 comments
trafficstars

:bug: Bug Report

Affected Languages

  • [ ] TypeScript or Javascript
  • [ ] Python
  • [X] Java
  • [X] .NET (C#, F#, ...)
  • [ ] Go

General Information

  • JSII Version: 1.46.0
  • Platform: osx

What is the problem?

Comments in Java and CSharp are being duplicated

// plain values
new edge.RequiredAttributeResource(this, "plain", {
  bool: res.bool,
  str: res.str,
  num: res.num,
});

gets translated to this in Java

// plain values
// plain values
RequiredAttributeResource.Builder.create(this, "plain")
        .bool(res.getBool())
        .str(res.getStr())
        .num(res.getNum())
        .build();

and this in C#

// plain values
// plain values
new RequiredAttributeResource(this, "plain", new Struct {
    Bool = res.Bool,
    Str = res.Str,
    Num = res.Num
});

Verbose Log

DanielMSchmidt avatar Nov 25 '21 12:11 DanielMSchmidt