VirtualBox

Opened 13 years ago

Closed 8 years ago

#8589 closed defect (obsolete)

JAX-WS vboxjws.jar has issues with enum types

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

Description (last modified by 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.

Attachments (2)

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

Download all attachments as: .zip

Change History (3)

comment:1 by aeichner, 8 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use