#11316 closed enhancement (obsolete)
Java API Inconsistancy - Storage Controller port and device
回報者: | Max D | 負責人: | |
---|---|---|---|
元件: | other | 版本: | VirtualBox 4.2.4 |
關鍵字: | API | 副本: | |
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?
更動歷史 (3)
comment:2 12 年 前 由 編輯
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 8 年 前 由 編輯
狀態: | new → closed |
---|---|
處理結果: | → obsolete |
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