History log of /libcore/luni/src/test/java/libcore/java/lang/PackageTest.java
Revision Date Author Comments
37e087d05e6dec5b577fc834c95b590cdc76c3cf 22-Aug-2016 Przemyslaw Szczepaniak <pszczepaniak@google.com> Revert Package.toString hack for API level > 24

Package.toString output hack will be applyied
if app target API level is <= 24. If it's > 24,
the proper output (with spec and version string)
is generated.

Test: libcore.java.lang.PackageTest on vogar
Bug: 28131225
Change-Id: I10f3af7ae267f7b3381f143b0e6936e8bb0a4fc0
9882d847dc6bf5fcb3954d484dcd8e2027b8dc51 11-Apr-2016 Narayan Kamath <narayan@google.com> Package: workaround for applications relying on toString output.

*** THIS CHANGE WILL BE REVERTED IN A FUTURE ANDROID RELEASE ***

bug: 28057303

(cherry picked from commit 453986b3c1c5cc96082cc8a7dd87a564f2d06c8a)

Change-Id: I6f52d5efd72053f78883dbe76907caf181f11cbe
453986b3c1c5cc96082cc8a7dd87a564f2d06c8a 11-Apr-2016 Narayan Kamath <narayan@google.com> Package: workaround for applications relying on toString output.

*** THIS CHANGE WILL BE REVERTED IN A FUTURE ANDROID RELEASE ***

bug: 28057303
Change-Id: I7e0cebd3a6660ae922f0e8c380147efce91c4d0e
f5cd147674c1de0ef860ac28867358d8cfbcd958 22-Apr-2015 Neil Fuller <nfuller@google.com> Tidy up Package and classloader comments

After commit 31ae6d22605a0967d722f935bc3a8b868ada4917

Remove a TODO, improve a test and fix a comment.
Also fixes a bug in Package demonstrated by the improved test.

Bug: 20482259
Change-Id: I6b37413d7004ce85c99bb854e0ec41e5f8588250
6dedda9b3d1b7fd96214568a2c96b8a0ed448458 16-Aug-2011 Jesse Wilson <jessewilson@google.com> Fix the PackageTest to not rely on a Class.getPackage() side effect.

Bug: http://b/5171136
Change-Id: I58259863157df1301183d851d43bcfc6fcdb72c9
0432d7db07f16409d05ba4095a0c3a442a9c77b9 25-Jun-2011 Jesse Wilson <jessewilson@google.com> Fix getPackage so it may be used by bootclasspath classes.

The test doesn't really exercise what I want it to exercise
unless it's run on the bootclasspath itself. It's a sizeable
amount of work to permit certain tests to run on the boot
class path, so I'm punting on the full regression test. I did
test this manually.

Bug: 4676726
Change-Id: I8f82041b93a59c7747655e5685a390c10004ff84
172232d3d82076fbee6f04a5f4b7b4672029e2ed 14-Apr-2011 Elliott Hughes <enh@google.com> Don't crash in Package.getAnnotations.

We never implemented the native method.

W(32205) No implementation found for native Ljava/lang/Package;.getDeclaredAnnotations (Ljava/lang/Package;Z)[Ljava/lang/annotation/Annotation; (dalvikvm)

Bug: http://code.google.com/p/android/issues/detail?id=16135
Change-Id: I75452271051dd6009495405baa1b420d1bdeaf7a