Opened 12 years ago
Closed 8 years ago
#11316 closed enhancement (obsolete)
Java API Inconsistancy - Storage Controller port and device
Reported by: | Max D | Owned by: | |
---|---|---|---|
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 (3)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
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 by , 8 years ago
Resolution: | → obsolete |
---|---|
Status: | new → closed |
Please reopen if still relevant with a recent VirtualBox release.
Also with mountMedium() and unmountMedium()
So I would guess with pretty much any method that use Port & Device IDs