Re: Inconsistency between ClassDesc::packageName and Class::getPackageName

2022-08-22 Thread Joseph D. Darcy
On 8/22/2022 11:57 AM, Alan Bateman wrote: On 22/08/2022 18:13, Kasper Nielsen wrote: Hi, I understand that the methods are behaving as specified. However, I still think that int.class.getPackageName() = "java.lang" int.class.describeConstable().get().packageName() = "" is surprising behavior

Re: Inconsistency between ClassDesc::packageName and Class::getPackageName

2022-08-22 Thread Alan Bateman
On 22/08/2022 18:13, Kasper Nielsen wrote: Hi, I understand that the methods are behaving as specified. However, I still think that int.class.getPackageName() = "java.lang" int.class.describeConstable().get().packageName() = "" is surprising behavior. And should probably as a minimum be docume

Re: Inconsistency between ClassDesc::packageName and Class::getPackageName

2022-08-22 Thread Kasper Nielsen
Hi, I understand that the methods are behaving as specified. However, I still think that int.class.getPackageName() = "java.lang" int.class.describeConstable().get().packageName() = "" is surprising behavior. And should probably as a minimum be documented on ClassDesc::packageName. /Kasper On

Re: Inconsistency between ClassDesc::packageName and Class::getPackageName

2022-08-22 Thread Joe Darcy
Hello, The method Class.getPackage is behaving as specified: public Package getPackage() Gets the package of this class. If this class represents an array type, a primitive type or void, this method returns null. as is Class.getPackageName(): If this class represents an array type then thi