Arrays making always problems on Jabaco.
Your code
|
Jabaco Source
|
1
2
3
4
5
|
Dim toin As java#io#InputStream
Dim buffer As Byte = New Byte(1024)
Dim len1 As Integer = -1
Do While ((len1 = toin.read() And Buffer) > -1)
Loop
|
will be compiled to
|
Jabaco Source
|
1
2
3
4
|
InputStream toin = null;
byte buffer = new Byte((byte)1024).byteValue();
int len1 = -1 * 1;
while ((Conversion.CInt((len1 != toin.read() ? 0 : 1) & buffer) <= -1 * 1 ? 0 : 1) != 0);
|
And remember, that the primitive datatype
byte and the object
Byte are two different things.
In Jabaco you acces
byte, when yiou write
Byte.
And you access
Byte, when you write
java#llang#Byte.
|
Jabaco Source
|
1
|
Byte[] buffer = New Byte[1024];
|
in Java is something like
|
Jabaco Source
|
1
2
|
Dim buffer() As java#lang#Byte
Redim buffer(1024)
|
in Jabaco. But this will be compiled to
|
Jabaco Source
|
1
2
|
VBArrayObject buffer = new VBArray();
buffer.setBound(0, 1024, false);
|
To look, what Jabaco have compiled, it helps, to use a decompiler like
[
JD-GUI ]
For that, running your program in the IDE and then go in the menu to "Project" -> "Open Working Directory". There are the files, you can decompile.
But it isn't sure, if it is allowed to decompile the created files.
And Manuel don't want to answer any questions like that:
[
http://www.jabaco.org/board/p3601-is-jab…d.html#post3601 ]
Greatings
theuserbl