diff options
author | jrose <none@none> | 2013-11-26 17:16:07 -0500 |
---|---|---|
committer | jrose <none@none> | 2013-11-26 17:16:07 -0500 |
commit | 945cd34c3fc7c2af1f30ae84a721596cbc3a2b25 (patch) | |
tree | 470b839fd3683561a4be0e7cbd5e1d7ab4da8150 /src | |
parent | f3e5f17c94141f3d561842eadff7699cff3ce455 (diff) |
8016839: JSR292: AME instead of IAE when calling a method
Summary: Catch missing-because-illegal case for itable entries and use an exception-throwing method instead of null.
Reviewed-by: acorn, jrose, coleenp
Contributed-by: david.r.chase@oracle.com
Diffstat (limited to 'src')
-rw-r--r-- | src/share/classes/sun/misc/Unsafe.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/share/classes/sun/misc/Unsafe.java b/src/share/classes/sun/misc/Unsafe.java index 25fb99e26..1a2e9155e 100644 --- a/src/share/classes/sun/misc/Unsafe.java +++ b/src/share/classes/sun/misc/Unsafe.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -1131,4 +1131,12 @@ public final class Unsafe { */ public native void fullFence(); + /** + * Throws IllegalAccessError; for use by the VM. + * @since 1.8 + */ + private static void throwIllegalAccessError() { + throw new IllegalAccessError(); + } + } |