jamesfredley commented on code in PR #15367:
URL: https://github.com/apache/grails-core/pull/15367#discussion_r2748594572
##########
grails-forge/gradle.properties:
##########
@@ -35,7 +35,7 @@ groovyVersion=3.0.25
jacksonDatabindVersion=2.18.3
jakartaInjectVersion=1.0.5
# match the jansi version in grails-bom
-jansiVersion=1.18
+jansiVersion=2.4.1
Review Comment:
Fixed: Updated grails-forge/gradle.properties jansiVersion to 2.4.2 to match
dependencies.gradle.
##########
grails-bootstrap/src/main/groovy/grails/build/logging/GrailsConsole.java:
##########
@@ -875,10 +859,15 @@ private String readLine(String prompt, boolean secure) {
assertAllowInput(prompt);
userInputActive = true;
try {
- Character inputMask = secure ? SECURE_MASK_CHAR : defaultInputMask;
- return reader.readLine(prompt, inputMask);
- } catch (IOException e) {
- throw new RuntimeException("Error reading input: " +
e.getMessage());
+ if (secure) {
+ return reader.readLine(prompt, SECURE_MASK_CHAR);
+ } else {
+ return reader.readLine(prompt, defaultInputMask, (String)
null);
Review Comment:
Fixed: Updated readLine to use the correct JLine 3 API signatures -
readLine(prompt) when no mask, or readLine(prompt, mask) when mask is specified.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]