Hi Jim, thanks for the links!
Jim White wrote: > Rony G. Flatscher wrote: >> just curious: ran over the definition of >> <com.sun.star.packages.zip.ZipConstants>, which lists constant values of >> *different/varying* (!) types! >> >> Is that an error or to be expected? >> ... > > I'd call it to be expected. I don't know anything about how that > stuff was done, but there is no particular reason to expect members of > a constant group (as opposed to an enum) to be of the same type. Well enums and constant groups are described under the same section (<http://api.openoffice.org/docs/DevelopersGuide/FirstSteps/FirstSteps.xhtml#1_5_4_3_Enum_Types_and_Groups_of_Constants>) and the usage of constant groups in all other cases that I inspected would only use one specific datatype and not intermix them. > http://api.openoffice.org/docs/DevelopersGuide/FirstSteps/FirstSteps.xhtml#1_5_4_Common_Types > > > And if you look at the definition of the API, you'll see that your > reflection is exactly the types specified (after UNO->Java mapping): > > http://api.openoffice.org/docs/common/ref/com/sun/star/packages/zip/ZipConstants.html > Being a bit unsure, the question still would be, whether it is really intended that a constant group's values can be of different types (because then the constant group may not consist of type compatible values such that the programmer needs to know what constant values from a constant group s/he is drawing and assigning to attributes/properties). Regards, ---rony --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
