605ce811b3498e34946e78d7e567f867481c70b8 |
|
27-Sep-2016 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Re-add tests using java.nio.file.Files This reverts commit d94a545fc6c0720e00c38d5c27c0981ca665e3a3. Which removed b/29721023 related tests from nyc-mr1 because they use APIs that are not present on nyc branches. Change-Id: Ib0f2040e799d1de6f8a5a20368a4bd8d1dc00156 Test: vogar run on both tests Bug: 29721023
|
da09aa47d3c5b5322a74331f0ebc993a0fc16447 |
|
22-Aug-2016 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Remove ObjectStreamClass workarounds for API > 24 Commit 987c9cae27659c044ae474fa92d9f1c51ecba9e0 added back private API that was abused by some apps. This change makes - ObjectStreamClass.getConstructorId(Class<?>) - ObjectStreamClass.newInstance(Class<?>, long) throw UnsupportedOperationException if called with targetSdkVersion > 24. Change-Id: I79234ca718991ba9dc73b7577768b617de9ad7df Test: org.apache.harmony.tests.java.io.ObjectStreamClassTest Bug: 28283540
|
d94a545fc6c0720e00c38d5c27c0981ca665e3a3 |
|
07-Jul-2016 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Remove broken tests Tests for change 75febb0b6fbb822a66c6771798297806c06decbe depend on package that doesn't exists in n-mr1 Bug: 29721023 Change-Id: I9b63fd72d5a5a45734cbc7e6c37fcd60b7766c61
|
75febb0b6fbb822a66c6771798297806c06decbe |
|
28-Jun-2016 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Fix serialization of class fields with same names. Dex allows for fields to share a name if they have different types. openJdk serialization code was not handling this case properly. Bug: 29721023 Change-Id: I3b8ea027f0af829e9f158d4bcb11a2052e34c10f (cherry picked from commit 0885fcbbbf2fdc46ffe847aca9d3c339f4c7bb41)
|
0885fcbbbf2fdc46ffe847aca9d3c339f4c7bb41 |
|
28-Jun-2016 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Fix serialization of class fields with same names. Dex allows for fields to share a name if they have different types. openJdk serialization code was not handling this case properly. Bug: 29721023 Change-Id: I3b8ea027f0af829e9f158d4bcb11a2052e34c10f
|
d1ce77d790fb9655f09a25afde0b91faf187a74c |
|
09-Jun-2016 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Fix clinit-related serialization incompatibility. For the code: class Parent { some code that will create <clinit> } class Child extends Parent {} java.io.ObjectStreamClass.hasStaticInitializer(Child.class) was returning false. This is technically valid, but historically android was returning true in this case. This causes problems with deserializing classes like Child without explicit serialVersionUID. To mitigate the problem, this change reverts to old behavior if sdk target <= 23. Bug: 29064453 Change-Id: Iaff269ced01543469a30b50673a04d3d8722d261 (cherry picked from commit fd17eabf30cec65a5cfb4df1a298fcf515ef7c93)
|
fd17eabf30cec65a5cfb4df1a298fcf515ef7c93 |
|
09-Jun-2016 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Fix clinit-related serialization incompatibility. For the code: class Parent { some code that will create <clinit> } class Child extends Parent {} java.io.ObjectStreamClass.hasStaticInitializer(Child.class) was returning false. This is technically valid, but historically android was returning true in this case. This causes problems with deserializing classes like Child without explicit serialVersionUID. To mitigate the problem, this change reverts to old behavior if sdk target <= 23. Bug: 29064453 Change-Id: Iaff269ced01543469a30b50673a04d3d8722d261
|
dde34deda1ddfd5f9860850e7b3730acaca6fb59 |
|
18-Apr-2016 |
Narayan Kamath <narayan@google.com> |
ObjectStreamClass: Add a workaround for abusers of private API. - ObjectStreamClass.getConstructorId(Class<?>) : returns a constant. - ObjectStreamClass.newInstance(Class<?>, long) : calls through to sun.misc.Unsafe.allocateInstance. *** THIS CHANGE WILL BE REVERTED IN A FUTURE ANDROID RELEASE *** bug: 28106822 (cherry picked from commit 987c9cae27659c044ae474fa92d9f1c51ecba9e0) Change-Id: I64c5c7e90d7c059114b33e84d5ea8ba69f8f6537
|
987c9cae27659c044ae474fa92d9f1c51ecba9e0 |
|
18-Apr-2016 |
Narayan Kamath <narayan@google.com> |
ObjectStreamClass: Add a workaround for abusers of private API. - ObjectStreamClass.getConstructorId(Class<?>) : returns a constant. - ObjectStreamClass.newInstance(Class<?>, long) : calls through to sun.misc.Unsafe.allocateInstance. *** THIS CHANGE WILL BE REVERTED IN A FUTURE ANDROID RELEASE *** bug: 28106822 Change-Id: I8c584b11e6779880a61dd2bc462e1a380e86ec89
|
ab762bb740405d0fefcccf4a0899a234f995be13 |
|
15-Nov-2013 |
Narayan Kamath <narayan@google.com> |
Move tests from tests/api to harmony-tests. (Take 2) This reverts commit d5e281743e55e1daa297fd8043b2d9b6e8e1bed2. The makefile issue that caused the original build break has been resolved.
|
d5e281743e55e1daa297fd8043b2d9b6e8e1bed2 |
|
15-Nov-2013 |
Narayan Kamath <narayan@google.com> |
Revert "Move tests from tests/api to harmony-tests." This reverts commit 81bf28ad31131815d0a36a43a0eca3c29aefdfcd. Breaks build Change-Id: I3f1562921ffe8fdbec36971dd65db398c27c92db
|
81bf28ad31131815d0a36a43a0eca3c29aefdfcd |
|
15-Nov-2013 |
Narayan Kamath <narayan@google.com> |
Move tests from tests/api to harmony-tests. The vast majority of cleaned up harmony tests are now in harmony-tests/src/test/org/apache/harmony/tests/ Change-Id: I56c2e484ff434b5618cf6751d602ae9f0db96b30
|