summaryrefslogtreecommitdiffstats
path: root/test/100-reflect2
Commit message (Collapse)AuthorAgeFilesLines
* Bugfix: Java char is 16 bits, can not be treated as boolean.Fredrik Roubert2015-07-272-4/+4
| | | | | | | | | | | | | | Using SetFieldBooleanVolatile() and SetFieldBoolean() happens to work for char values that only use the lower 8 bits, but is a mistake that was introduced by the "Add AccessibleObject and Field to mirror" commit: https://android.googlesource.com/platform/art/+/daaf326 (cherry picked from commit 3152c82b0d33e5fb0a4aa964ea58451c72734444) Bug:22772717 Change-Id: Iec02ba3084c992ea239ecef688d7d29c7e21ae16
* Fix constructor access check through reflectionSebastien Hertz2015-04-281-2/+15
| | | | | | | | | We must not throw IllegalAccessException if the constructor has been made accessible by a previous call to Constructor.setAccessible, even if the caller cannot access the constructor. Bug: 20639158 Change-Id: I9a34f05cdbb8825ad88b42223743690228e3f03e
* Merge "ART: Fix constructor access checking"Andreas Gampe2015-04-282-0/+38
|\
| * ART: Fix constructor access checkingAndreas Gampe2015-04-272-0/+38
| | | | | | | | | | | | | | | | | | Constructor access must be checked. (cherry picked from commit 0dd76cd3f09f495a1b9a0e4f8712c09ff885c6fd) Bug: 20639158 Change-Id: I3c586e9572a748d208bea43aa2349c3ef52a2ee5
* | Replace String CharArray with internal uint16_t array.Jeff Hao2015-04-271-2/+2
|/ | | | | | | | | | | | Summary of high level changes: - Adds compiler inliner support to identify string init methods - Adds compiler support (quick & optimizing) with new invoke code path that calls method off the thread pointer - Adds thread entrypoints for all string init methods - Adds map to verifier to log when receiver of string init has been copied to other registers. used by compiler and interpreter Change-Id: I797b992a8feb566f9ad73060011ab6f51eb7ce01
* art/test/100-reflect2: change incorrect expectations.Sergio Giro2015-03-111-1/+1
| | | | | | | | Methods can't be volatile nor transient. bug: 18488857 Change-Id: Ie82ed513b58083a795549a708197f1db52ffb796
* Keep original order of fields in Class.Vladimir Marko2014-11-141-1/+1
| | | | | | | | | | | | | The fields of a class are ordered alphabetically in the dex file. Keep the same order in the field arrays so that we can do binary search lookups by name. Those lookups will be implemented in a subsequent change in libcore/. Bug: 18211592 (cherry picked from commit bfa3ed0ad988e1da13626ddbaf6dcae0c58ea79e) Change-Id: I8f979de62ffe37d1c7d5c721717d2f3501e7c9e6
* Set vtable in class object to null after linking.Mingyao Yang2014-07-221-1/+1
| | | | | | | | This is follow-up work of embedding imt and vtable for faster interface/virtual call dispatching. Once vtable becomes embedded, the original vtable is nulled. Change-Id: I307696657d1e283654169dbecb8f7815c42bbabc
* Add access checks to Method and Field reflection.Jeff Hao2014-03-282-14/+6
| | | | | | | Art side of this change. Has a corresponding libcore change. Bug: 13620925 Change-Id: Ie67f802a2a400e8212b489b9a261b7028422d8ba
* Implement Interface Method Tables (IMT).Jeff Hao2013-10-291-1/+1
| | | | Change-Id: Idf7fe85e1293453a8ad862ff2380dcd5db4e3a39
* Use class def index from java.lang.Class.Ian Rogers2013-09-191-1/+1
| | | | | | | | | | | | Bug: 10244719 Depends on: https://googleplex-android-review.git.corp.google.com/362363 This removes the computation of the dex file index, when necessary this is computed by searching the dex file. Its only necessary in dalvik.system.DexFile.defineClassNative and DexFile::FindInClassPath, the latter not showing up significantly in profiling with this change. Change-Id: I20c73a3b17d86286428ab0fd21bc13f51f36c85c
* Refactor java.lang.reflect implementationBrian Carlstrom2013-08-131-1/+1
| | | | | | | | | | | Cherry-picked from commit ed41d5c44299ec5d44b8514f6e17f802f48094d1. Move to ArtMethod/Field instead of AbstractMethod/Field and have java.lang.reflect APIs delegate to ArtMethod/ArtField. Bug: 10014286. Change-Id: Iafc1d8c5b62562c9af8fb9fd8c5e1d61270536e7
* Fixed list of String methods after removal of old JIT methods.Jeff Hao2013-06-101-1/+1
| | | | Change-Id: I34a8fd56a8e2b51f5ef31d0a8e2694112f5ee2b2
* Interpreter entries and instrumentation as a listener.Ian Rogers2013-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the instrumentation responsible for whether we want method entry/exit stubs, and allow it to use interpreter entry stubs when instruction by instruction instrumentation is required. Improve deoptimization so more JDWP test cases are passing. Refactor exception debug posting, in particular improve reporting in the interpreter. Improve class linker exception throwing so that broken dex files are more likely to be reported. Fixes the performance issue Bug: 8410519. Fix some error reporting lock level errors for the large object space. Make fast object verification faster. Add some debug mode robustness to finding dex PCs in GC maps. Add printf attributes to JniAbortF and fix errors. Expand run-test 044 to test return behaviors and fix issues with not throwing appropriate exceptions for proxies. Ensure causes are reported with a class linker NoClassDefFoundError and JNI NoSuchFieldError. Remove unused debugMe and updateDebuggerFromCode. There's a minor sizing tweak to the arg array builder, and an extra reference array check in the interpreter. Some clean-up of trace code. Fix reg type cache destructor if it is called after the reg type cache is shutdown (as is the case in oatdump). Change-Id: I6519c7b35df77f978d011999354c864f4918e8ce
* Move ReflectionTest to a run-test.Ian Rogers2013-01-103-0/+351
Change-Id: I3d3047aeea3db467beebd7c76b336b6699fb9238