Incorrect plural field and accessor method names
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- java
- Área
- build-system, tooling
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- XSLT
- Estrellas
- 10
- Forks
- 6
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de entur/siri-java-model
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
entur/siri-java-model#37 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
entur/siri-java-model#29 · 1 comentario ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
entur/siri-java-model#28 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
entur/siri-java-model#1 ·
Todos los issues de entur/siri-java-model
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
trezor/trezor-firmware#7997 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
bug good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
score-spec/docs#329 · 1 comentario ·
-
Update vtm to 2026.9.28Abiertopackage-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
oSoWoSo/vOid_Community_repOsitory#207 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
vllm-project/vllm-ascend#17784 ·
Los mantenedores suelen responder en 1 día