jsii-rosetta: Duplicate Comments on CSharp and Java
- Dominant language
- TypeScript
- Stars
- 30
- Forks
- 22
- Avg merge
- 1h 28m
- Merged PRs (30d)
- 44
Description
## :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
```ts
// plain values
new edge.RequiredAttributeResource(this, "plain", {
bool: res.bool,
str: res.str,
num: res.num,
});
```
gets translated to this in Java
```java
// plain values
// plain values
RequiredAttributeResource.Builder.create(this, "plain")
.bool(res.getBool())
.str(res.getStr())
.num(res.getNum())
.build();
```
and this in C#
```csharp
// plain values
// plain values
new RequiredAttributeResource(this, "plain", new Struct {
Bool = res.Bool,
Str = res.Str,
Num = res.Num
});
```
### Verbose Log
Contributor guide
Research direction
No repository files or tests are named. Start by reproducing the shown TypeScript translation and compare the Java and C# output, then trace where the comment is emitted for each target; done means each generated comment appears only once.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, java, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100