RFR (S): 8140001: _allocateInstance intrinsic does not throw InstantiationException for abstract classes and interfaces
aleksey.shipilev at oracle.com
Thu Jan 14 15:15:52 UTC 2016
Looks okay to me, but I think the property name should reflect Java
terminology, e.g. "can_be_instantiated", "not is_allocatable"?
$ javac AbstractSample.java
[ERROR] AbstractSample.java:[36,9] AbstractSample.M is abstract; cannot
On 01/14/2016 06:05 PM, Vladimir Ivanov wrote:
> Any feedback, please?
> Best regards,
> Vladimir Ivanov
> On 1/12/16 6:22 PM, Vladimir Ivanov wrote:
>> EA can eliminate allocations of abstract classes or interfaces, thus
>> changing observable behavior of a program as the test case demonstrates.
>> The fix is to always mark such allocations as escaping.
>> Testing: failing test, JPRT.
>> Best regards,
>> Vladimir Ivanov
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the hotspot-compiler-dev