#8589 closed defect (obsolete)
JAX-WS vboxjws.jar has issues with enum types — 於 版本 1
回報者: | ludo | 負責人: | |
---|---|---|---|
元件: | webservices | 版本: | VirtualBox 4.0.4 |
關鍵字: | 副本: | ||
Guest type: | other | Host type: | other |
描述 (由 作最後更新)
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.
Please reopen if still relevant with a recent VirtualBox release.