I was wondering when the public version of Oxygene for Java is being updated?
I have been using this version, and it is very frustrating that the Oxidizer (Java, Delphi -> Oxygene) just doesn’t work - pastes in errors instead (In my humble opinion, this is souring a very good product!).
Also, when is Oxygene for Java going to support multi-dimensional arrays just like Java can?
Whatever pascal sample code I copy to clipboard and use Oxidizer->Paste Delphi as Oxygene, I get conversion error : “Object reference not set to an instance of an object”.
The new version of Oxygene should be due at the end of the month.
Ok, cool…thanks Carlo
arrays of arrays are supported already though, which is what (int[][]) in java is, an array of an array:
var x: array of array of Integer;
Ah! I hadn’t tried that [does facepalm]!
So how to I assign the array x’s sizes for each dimension then?
I tried this:
x: array of array of Integer;
begin
x := new Integer[5][10];
and got this error:
Error 1 (E62) Type mismatch, cannot assign "array of RemObjects.Oxygene.System.Integer" to "array of array of RemObjects.Oxygene.System.Integer" C:\Shared\My Dropbox\Oxygene for java\projects\platformation\platformation\game_main.pas 187 8 platformation
Whatever pascal sample code I copy to clipboard and use Oxidizer->Paste Delphi as Oxygene, I get conversion error : "Object reference not set to an instance of an object".
I get exactly the same error.
Also, when I try using Oxidizer with Java code, for example the text below:
try {
// Set up destination attribute
PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
aset.add(new Destination(new java.net.URI("file:e:/temp/out.ps")));
// Print it
job.print(doc, aset);
} catch (PrintException e) {
} catch (java.net.URISyntaxException e) {
}
Oxygene output:
try
// Set up destination attribute
var aset: PrintRequestAttributeSet := new HashPrintRequestAttributeSet();
aset.&add(new Destination(new java.net.URI('file:e:/temp/out.ps')));
// Print it
job.print(doc, aset);
except
on e: PrintException do
begin
end
;
on e: URISyntaxException do
begin
end
end ;
What’s with the extra line feeds (after “end”) and the ampersands “&”?
@mh: Ok, I have downloaded the gamma version (5.1.34.1015)…should I uninstall the public version of Oxygene (5.0.31.991) first or just install over the top of it?
@paulnicholls:
I think the best approach is uninstalling old version first and installing the new version after it (though I know that you can simply install Oxygene on the top of older version and it will work). Though Marc knows better about it.