Problem with optLong, getLong when parsing JSONObject and XML

Abierto
#868 3 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
java
Área
backend

Línea de trabajo

The issue concerns JSONObject and XML parsing and references #653, #783, #790, #794, #826, #852, #661, #814, and #813. Start by reviewing those discussions and the reversion history; done would require an agreed behavior change without the reported side effects.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Completed Keep issue open

This issue tracks the history and next steps for some recent issues and PRs concerning different handling for optLong and getLong in JSONObject and XML.

#653 noted that JSONObject optLong() and getLong() have different behaviors.
#783 fixed the JSONObject issue in #653.
#790 was added to discuss a similar problem in XML parsing.
#794 fixed the XML issue in #790.
#826 raised an issue that there were problems with the change to JSONObject (see #653 and #783)
#852 raised an issue that there were problems with the change to XML (see #790 and #794)

#661 was another attempt at fixing #653. It was ultimately not accepted, but illustrates the difficulty in getting the expected behavior.

There was insufficient care in the code review to ensure the changes had no unintended side effects. Also, these behavior changes should probably have been opt-in via a configuration object, rather than made unilaterally for all users.
The changes in #783 and #794 will be reverted. At some future time, we should address this issue again, but without the side effects.

#814 will be reverted as well (see #813), since it touches code that is being reverted.

Lenguaje dominante
Java
Estrellas
4.7k
Forks
2.6k
Merge medio
6 d 20 h
PR fusionados (30 d)
2

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de stleary/JSON-java

Todos los issues de stleary/JSON-java

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.