[ 
https://issues.apache.org/jira/browse/FELIX-5342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schneider updated FELIX-5342:
---------------------------------------
    Description: 
To reproduce start the shell, then type some invalid command like en then type 
tab twice. 
Interestingly it does not happens with abc and two tabs. I think this is 
because there are commands matching a.

gogoArithmeticException: / by zero
java.lang.ArithmeticException: / by zero
        at 
org.jline.reader.impl.LineReaderImpl$MenuSupport.next(LineReaderImpl.java:3808)
        at 
org.jline.reader.impl.LineReaderImpl$MenuSupport.<init>(LineReaderImpl.java:3800)
        at org.jline.reader.impl.LineReaderImpl.doMenu(LineReaderImpl.java:3945)
        at org.jline.reader.impl.LineReaderImpl.doList(LineReaderImpl.java:4089)
        at 
org.jline.reader.impl.LineReaderImpl.doComplete(LineReaderImpl.java:3710)
        at 
org.jline.reader.impl.LineReaderImpl.expandOrComplete(LineReaderImpl.java:3458)
        at 
org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:527)
        at org.apache.felix.gogo.jline.Shell.runShell(Shell.java:397)
        at org.apache.felix.gogo.jline.Shell.gosh(Shell.java:324)
        at 
org.apache.felix.gogo.jline.Activator.doStartShell(Activator.java:146)
        at 
org.apache.felix.gogo.jline.Activator.lambda$startShell$0(Activator.java:106)
        at java.lang.Thread.run(Thread.java:745)


  was:
To reproduce start the shell, then type some invalid command like abc then type 
tab twice. 

gogoArithmeticException: / by zero
java.lang.ArithmeticException: / by zero
        at 
org.jline.reader.impl.LineReaderImpl$MenuSupport.next(LineReaderImpl.java:3808)
        at 
org.jline.reader.impl.LineReaderImpl$MenuSupport.<init>(LineReaderImpl.java:3800)
        at org.jline.reader.impl.LineReaderImpl.doMenu(LineReaderImpl.java:3945)
        at org.jline.reader.impl.LineReaderImpl.doList(LineReaderImpl.java:4089)
        at 
org.jline.reader.impl.LineReaderImpl.doComplete(LineReaderImpl.java:3710)
        at 
org.jline.reader.impl.LineReaderImpl.expandOrComplete(LineReaderImpl.java:3458)
        at 
org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:527)
        at org.apache.felix.gogo.jline.Shell.runShell(Shell.java:397)
        at org.apache.felix.gogo.jline.Shell.gosh(Shell.java:324)
        at 
org.apache.felix.gogo.jline.Activator.doStartShell(Activator.java:146)
        at 
org.apache.felix.gogo.jline.Activator.lambda$startShell$0(Activator.java:106)
        at java.lang.Thread.run(Thread.java:745)



> Division by zero in new gogo for jline3
> ---------------------------------------
>
>                 Key: FELIX-5342
>                 URL: https://issues.apache.org/jira/browse/FELIX-5342
>             Project: Felix
>          Issue Type: Bug
>          Components: Gogo Shell
>            Reporter: Christian Schneider
>         Attachments: samples.jar
>
>
> To reproduce start the shell, then type some invalid command like en then 
> type tab twice. 
> Interestingly it does not happens with abc and two tabs. I think this is 
> because there are commands matching a.
> gogoArithmeticException: / by zero
> java.lang.ArithmeticException: / by zero
>       at 
> org.jline.reader.impl.LineReaderImpl$MenuSupport.next(LineReaderImpl.java:3808)
>       at 
> org.jline.reader.impl.LineReaderImpl$MenuSupport.<init>(LineReaderImpl.java:3800)
>       at org.jline.reader.impl.LineReaderImpl.doMenu(LineReaderImpl.java:3945)
>       at org.jline.reader.impl.LineReaderImpl.doList(LineReaderImpl.java:4089)
>       at 
> org.jline.reader.impl.LineReaderImpl.doComplete(LineReaderImpl.java:3710)
>       at 
> org.jline.reader.impl.LineReaderImpl.expandOrComplete(LineReaderImpl.java:3458)
>       at 
> org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:527)
>       at org.apache.felix.gogo.jline.Shell.runShell(Shell.java:397)
>       at org.apache.felix.gogo.jline.Shell.gosh(Shell.java:324)
>       at 
> org.apache.felix.gogo.jline.Activator.doStartShell(Activator.java:146)
>       at 
> org.apache.felix.gogo.jline.Activator.lambda$startShell$0(Activator.java:106)
>       at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to