This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Zudo's profile picture

bios:238: vm error: java.langNegativeArraySizeException

Started by Zudo, 22 June 2013 - 02:04 AM
Zudo #1
Posted 22 June 2013 - 04:04 AM
I don't code with Java, and this may have been posted before.

Say I made a program that did this:


w = term.getSize()
term.setCursorPos(w, 1)

and executed it, it would move the shell prompt. Then I pressed space then backspace. That is when I got the error.
Engineer #2
Posted 22 June 2013 - 05:10 AM
I don't code with Java, and this may have been posted before.

Say I made a program that did this:


w = term.getSize()
term.setCursorPos(w, 1)

and executed it, it would move the shell prompt. Then I pressed space then backspace. That is when I got the error.
First of all, this is not an error in the java code. The read function from the bios.lua is messing up, that is the case. And that is happening because the read function does not check if its at the end of the screen, so it literally draws out of the screen.

So it is not java messing up, they just havent got a prettified name for it :P/>
jere407407 #3
Posted 23 June 2013 - 12:01 AM
Something similar happened to me… but the fix above helped :D/>