VirtualBox

Ticket #11316 (new enhancement)

Opened 16 months ago

Last modified 15 months ago

Java API Inconsistancy - Storage Controller port and device

Reported by: noteirak Owned by:
Priority: trivial Component: other
Version: VirtualBox 4.2.4 Keywords: API
Cc: Guest type: all
Host type: all

Description

Just reporting an inconsistency in the Java API WebService jar (and possibly in the XPCOM):

Any attribute of IStorageController about Port and Device have a long type, but attachDevice(), attachDeviceWithoutMedium and detachDevice() use Integer values for the port and device number.
Granted, this will never be an issue in the code since the value will not be bigger than int.

Possibly some code optimisation since the values will never be bigger than int?

Change History

comment:1 Changed 16 months ago by noteirak

Also with mountMedium() and unmountMedium()
So I would guess with pretty much any method that use Port & Device IDs

comment:2 Changed 15 months ago by noteirak

Also about any long/int requirements - see .value() on enum. They give an int, but the required value in methods for the corresponding is long

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use