OpenJDK / type-annotations / type-annotations / jdk
changeset 9011:e822676cd3cd
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
author | jrose |
---|---|
date | Tue, 26 Nov 2013 17:16:07 -0500 |
parents | 4d9078b1f25b |
children | 1738dfb0c52a |
files | src/share/classes/sun/misc/Unsafe.java |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/sun/misc/Unsafe.java Tue Nov 26 14:49:55 2013 +0900 +++ b/src/share/classes/sun/misc/Unsafe.java Tue Nov 26 17:16:07 2013 -0500 @@ -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 native void fullFence(); + /** + * Throws IllegalAccessError; for use by the VM. + * @since 1.8 + */ + private static void throwIllegalAccessError() { + throw new IllegalAccessError(); + } + }