VirtualBox

Ticket #8589 (new defect)

Opened 3 years ago

JAX-WS vboxjws.jar has issues with enum types

Reported by: ludo Owned by:
Priority: major Component: webservices
Version: VirtualBox 4.0.4 Keywords:
Cc: Guest type: other
Host type: other

Description

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.

Attachments

VirtualSystemDescriptionType.java Download (1.2 KB) - added by ludo 3 years ago.
VirtualSystemDescriptionValueType.java Download (894 bytes) - added by ludo 3 years ago.

Change History

Changed 3 years ago by ludo

Changed 3 years ago by ludo

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use