Ticket #11316 (closed enhancement: obsolete)

Opened 7 years ago

Last modified 3 years ago

Java API Inconsistancy - Storage Controller port and device

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


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 7 years 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 7 years 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

comment:3 Changed 3 years ago by aeichner

  • Status changed from new to closed
  • Resolution set to obsolete

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use