<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hey team, <div><br></div><div>I got an annotation processor that uses Elements#getAllModuleElements and goes through all the packages to find classes matching a certain condition, but it seems packages that are not explicitly exported are not present when I call ModuleElement#getEnclosedElements.</div><div><br></div><div>Another thing that makes this odd is that when I know the package ahead of time and call Elements#getPackageElement to get the non-exported package, suddenly using getEnclosedElements() on the module element works as expected.</div><div><br></div><div>I want to confirm if this behavior is intentional, as the Javadocs for getEnclosedElements do not suggest this should be happening.</div><div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Cheers, Josiah.</div></div><input name="virtru-metadata" type="hidden" value="{"email-policy":{"disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"expandedWatermarking":false,"expires":false,"sms":false,"expirationNum":1,"expirationUnit":"days","isManaged":false,"persistentProtection":false},"attachments":{},"compose-id":"1","compose-window":{"secure":false}}"></div></div></div></div></div></div></div></div></div></div>