version::qv stringification incorrectly adds a leading v
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 66/100
Línea de trabajo
Start in src/main/java/org/perlonjava/runtime/perlmodule/Version.java: read the forceQv branch of parseInternal and stringify(), which returns original after the branch stored a v-prefixed value there. Re-run the four-line qv reproducer against system Perl and PerlOnJava to confirm the divergence, and check how is_qv and version comparison consume the same fields so they keep working. Done looks like qv("1.2.31") printing 1.2.31 while comparison semantics stay unchanged; the Test::ConsistentVersion suite is the wider check.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
version::qv("1.2.31") stringifies as v1.2.31 in PerlOnJava, while system Perl stringifies it as 1.2.31. This breaks consumers that use the stringified value as the declared distribution version. For example, Test::ConsistentVersion v0.3.1 fails changelog and README version checks under PerlOnJava, while its suite passes under system Perl.
Reproduction
use version;
my $v = qv("1.2.31");
print "$v\n";
Observed: PerlOnJava JVM backend and interpreter print v1.2.31; system Perl 5.42.2 prints 1.2.31.
Root cause
Version.qv() calls parseInternal(..., true). In the forceQv branch, parseInternal prepends v to the input and stores the prefixed value in the object’s original field. Version.stringify() returns original directly, making the implementation’s internal dotted-decimal representation visible during stringification.
The behavior appears in src/main/java/org/perlonjava/runtime/perlmodule/Version.java, in the forceQv handling and stringify() implementation.
Impact / evidence
The archived CPAN run reports 3 of 8 test programs failing. Failures come from Test::ConsistentVersion checks that compare the distribution version against changelog and README text. The package’s full test suite passes on system Perl. The missing optional Test::Pod::Content module is also absent on system Perl and is not the cause.
Expected behavior
Match system Perl’s stringification for qv("1.2.31") while retaining dotted-decimal / is_qv semantics for version comparison and normalization.
- Lenguaje dominante
- Perl
- Estrellas
- 67
- Forks
- 8
- Merge medio
- 5 h 12 min
- PR fusionados (30 d)
- 131
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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 fglock/PerlOnJava
-
area:cpan-port bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
fglock/PerlOnJava#2153 ·
Los mantenedores suelen responder en 1 día
-
area:cpan-port area:parser bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fglock/PerlOnJava#2137 ·
Los mantenedores suelen responder en 1 día
-
area:backend area:cpan-port area:runtime bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
fglock/PerlOnJava#2071 ·
Los mantenedores suelen responder en 1 día
-
area:runtime documentation enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fglock/PerlOnJava#1579 ·
Los mantenedores suelen responder en 1 día
-
area:cpan-port bug
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
fglock/PerlOnJava#2157 ·
Los mantenedores suelen responder en 1 día
Todos los issues de fglock/PerlOnJava
Issues similares
-
Dev-output directory preparation accepts file-valued lib/include paths and fails on dangling linksAbiertoteam-cli
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 93/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
inverse-inc/packetfence#9728 ·
Los mantenedores suelen responder en 1 día
-
fix(char-create): show the real reason a character is refusedPosiblemente ocupada @baphomello la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día