Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Problem with IType class


Hi all.

Is there somebody who has already used this function, from the internal class Kind from the IType class:


/////////////////////////////////////////////////////////////////////////////////////////////////////////
valueOf

public static IBasicType.Kind valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

    Parameters:
        name - the name of the enum constant to be returned.
    Returns:
        the enum constant with the specified name
    Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null

///////////////////////////////////////////////////////////////////////////////////////////////////////////

My problem is that Kind.valueOf("void") throws an exception, althought it should logically return Kind.eVoid.

Any guess about this?

Thanks in advance.

Maxime.



Back to the top