VirtualBox

14 年 前 建立

8 年 前 結束

#8589 closed defect (obsolete)

JAX-WS vboxjws.jar has issues with enum types

回報者: ludo 負責人:
元件: webservices 版本: VirtualBox 4.0.4
關鍵字: 副本:
Guest type: other Host type: other

描述 (由 aeichner 作最後更新)

Playing with the import appliances features via a JAX-WS client using vboxjws.jar from VB SDK 4.0.x

2 Enum classes are not correct in the CASE of the values. Server side sends UPPERCASE values, while the enum java values are CamelCaseWithoutUnderScore.

I decompile the 2 classes, change the case, and now my modification works, so it should be applied to VirtualBox SDK JWS jar library.

the 2 enum classes are: VirtualSystemDescriptionType and VirtualSystemDescriptionValueType

Code should be more like:

public enum VirtualSystemDescriptionValueType {

REFERENCE(1), ORIGINAL(2), AUTO(3), EXTRACONFIG(4);

private final int value;

..................

and:

package org.virtualbox_4_0;

public enum VirtualSystemDescriptionType {

IGNORE(1), OS(2), NAME(3), PRODUCT(4), VENDOR(5), VERSION(6), PRODUCTURL(7), VENDORURL(8), DESCRIPTOR(9), LICENSE(10), MISCELLANEOUS(11), CPU(12), MEMORY(13), HARD_DISK_CONTROLLER_IDE(14), HARD_DISK_CONTROLLER_SATA(15), HARD_DISK_CONTROLLER_SCSI(16), HARD_DISK_CONTROLLER_RSAS(17), HARD_DISK_IMAGE(18), FLOPPY(19), CDROM(20), NETWORK_ADAPTER(21), USB_CONTROLLER(22), SOUNDCARD(23);

private final int value;

to reflect correct CASE from the server.

附加檔案 (2)

VirtualSystemDescriptionType.java (1.2 KB ) - 14 年 前, 由 ludo 新增
VirtualSystemDescriptionValueType.java (894 位元組 ) - 14 年 前, 由 ludo 新增

下載所有附檔: .zip

更動歷史 (3)

14 年 前ludo 編輯

14 年 前ludo 編輯

comment:1 8 年 前aeichner 編輯

描述: 修改 (差異)
狀態: newclosed
處理結果: obsolete

Please reopen if still relevant with a recent VirtualBox release.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette