Incorrect plural field and accessor method names
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
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- build-system, tooling
Hướng nghiên cứu
Start with pom.xml lines 178-226 and inspect the cxf-xjc-plugin configuration and generated Java classes named in the issue. Compare their plural names with the SIRI XSDs and determine whether the forms are introduced during code generation. Done means identifying the source of the names and either fixing that generation path or documenting why the generated accessors are harmless.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When working with SIRI data, @leonardehrenfried and I both noticed that some fields and accessor methods have strange plural forms. For example:
uk.org.siri.siri20.AffectsScopeStructure.VehicleJourneys#affectedVehicleJourneiesuk.org.siri.siri20.AffectsScopeStructure.VehicleJourneys#getAffectedVehicleJourneiesuk.org.siri.siri13.AffectedVehicleJourneyStructure#vehicleJourneyRevesuk.org.siri.siri13.AffectedVehicleJourneyStructure#getVehicleJourneyReves
These appear to be over-generalizations of irregular English plurals (here, leaf/wolf/elf). They could be introduced at the data model (UML) stage, the XSD downstream from UML, or the Java code generation from the XSD. Depending on where they are introduced, they could lead to anything from failed deserialization to harmless but odd looking Java code.
We searched through the SIRI XSD via https://github.com/SIRI-CEN/SIRI and did not discover any of these plural forms, so our suspicion is that they're introduced in the code generation stage. https://github.com/entur/siri-java-model/blob/master/pom.xml#L178-L226 shows use of cxf-xjc-plugin. This appears to be a related discussion on StackOverflow: https://stackoverflow.com/q/4502229/778449
https://stackoverflow.com/a/13359717/778449
If our understanding is correct, this is not expected to create any errors in the short term. I am creating this issue because people may reuse this siri-java-model within or outside Entur, and may be concerned and invest time the way we did into verifying whether or not this will cause problems. If the plurals can be fixed it may save confusion in the future.
- Ngôn ngữ chính
- XSLT
- Star
- 10
- Fork
- 6
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 entur/siri-java-model
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
entur/siri-java-model#37 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
entur/siri-java-model#29 · 1 bình luận ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
entur/siri-java-model#28 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
entur/siri-java-model#1 ·
Tất cả issue của entur/siri-java-model
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
DaveGamble/cJSON#1094 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
trezor/trezor-firmware#7997 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
objectionary/eolang.sty#184 ·
-
bug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
score-spec/docs#329 · 1 bình luận ·