Skip to content

jsii-rosetta: Duplicate Comments on CSharp and Java #1179

@DanielMSchmidt

Description

@DanielMSchmidt

🐛 Bug Report

Affected Languages

  • TypeScript or Javascript
  • Python
  • Java
  • .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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions