RFR (S): 8148753: Compilation fails due to field accesses on array types
zoltan.majo at oracle.com
Mon Feb 1 15:14:13 UTC 2016
please review the patch for 8148753.
Problem: Compiling methods that access fields of array types fails. The
problem is that both compilers assume that only fields of instance types
(but not field of array types) can be accessed. However, an array can be
also seen as an instance type, as every array is a subclass of
Solution: Treat accesses to fields of array types as accesses to fields
of java.lang.Object. By convention, the java.lang.Object does not have
any fields. As a result, the generated code will throw a
java.lang.NoSuchFieldError exception (the expected behavior in this case).
- all JTREG hotspot/compiler tests on all supported platforms.
Thank you and best regards,
More information about the hotspot-compiler-dev