C# printer: nine unit-test samples that Roslyn rejects
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 61/100
Hướng nghiên cứu
Read the listed TestJavaToCSharpStructure and TestJavaToCSharpBcl samples, then run the C# printer unit tests with CSharpCheck via tools/csharp-check -serve. Fix each remaining printer bug identified by the Roslyn errors and remove its compile = false marker; the issue is done when all samples compile. The inherited-family test fault is already fixed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The C# printer's unit tests now have Roslyn judge every sample (CommonJavaToCSharp.translate, CSharpCheck on tools/csharp-check -serve). On the first run, 9 of 131 samples do not compile. Each test sets compile = false with a pointer here until its printer bug is fixed; this issue closes when none is left.
TestJavaToCSharpStructure.conditionalVars:var node = c ? new IndexedExists<A, B>() : new UnindexedExists<A, string>()— CS0173, C# finds no common type for a conditional of two sibling classes; Java's is the common supertype (declare it, or cast one branch).TestJavaToCSharpStructure.innerClasses:Upcoming : IJavaIterator<long>withlong? Next()— CS0738, the boxedLong next()must override aslong, as it does for a top-level class.TestJavaToCSharpStructure.localClasses: a local class that captures (Adder) is referenced but not printed anywhere — CS0246.TestJavaToCSharpStructure.longTypeArguments: a cast through a wildcard printed asobject— CS0030 (the wildcard family).TestJavaToCSharpStructure.suppliers:sealed class Defaults<R> where R : Defaults<R>— CS0701, a class that is a type parameter's bound cannot besealed.TestJavaToCSharpStructure.tryWithResources:System.gc()unmapped (GC.Collect()).TestJavaToCSharpStructure.wildcardInterfaces: the wildcard interfaceIImpacterand the companionstatic class IImpacterofIImpacter<G>clash — CS0102.TestJavaToCSharpBcl.navigation: three errors in one sample:T[] ToArray<T>(T[] a) => items.ToArray()(CS0029,E[]toT[]),!Contains(v) && items.Add(v)whereAddisvoidon aHashSet-backedICollection(CS0019), andc.All(...)on the non-genericICollection(CS1061).TestJavaToCSharpFacts.inheritedFamilyAndStructswas the test's own fault (a package-private method implementing an interface method is not Java either) and is fixed.
- Ngôn ngữ chính
- Java
- Star
- 1
- Fork
- 1
- Merge trung bình
- 1 giờ 13 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeLaser/maddi
-
Javadoc warnings are the only noise on an otherwise clean CI runCó thể đã có người làm @jayeshamundkar06-bit đã nhận 6 ngày trước. Đang mởbuild/ci good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
CodeLaser/maddi#4 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
front-end:csharp
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 14/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CodeLaser/maddi
Issue tương tự
-
Document and enforce pull request review guidelinesCó thể đã có người làm @dashorst đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`Time.at(t, in: nil)` returns UTC instead of the local time (or the time zone of `t`), unlike CRubyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
hermes-queue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
chrisalunlloyd2-sudo/mindpalace#349 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Retry-After parser accepts invalid delay-seconds valuesCó thể đã có người làm @Dhruvraj-Rana đã nhận hôm nay. Đang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
open-telemetry/opentelemetry-java#9018 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
dropwizard-testing: DAOTest.inTransaction leaves the transaction open when an Error is thrownĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dropwizard/dropwizard#11410 ·
Maintainer thường phản hồi trong vòng 1 ngày