VirtualBox

Opened 13 years ago

Last modified 8 years ago

#8589 closed defect

JAX-WS vboxjws.jar has issues with enum types — at Initial Version

Reported by: ludo Owned by:
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.

Change History (2)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use