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
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
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
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