8283426: Fix 'exeption' typo

Reviewed-by: xuelei, iris, dholmes, wetmore, aivanov
This commit is contained in:
Andrey Turbanov 2022-03-24 19:52:16 +00:00
parent f16244509d
commit dc5a65ab37
17 changed files with 36 additions and 38 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2019 SAP SE. All rights reserved. * Copyright (c) 2016, 2019 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
@ -304,7 +304,7 @@ bool PosixSignals::pd_hotspot_signal_handler(int sig, siginfo_t* info,
CodeBlob* cb = CodeCache::find_blob_unsafe(pc); CodeBlob* cb = CodeCache::find_blob_unsafe(pc);
CompiledMethod* nm = (cb != NULL) ? cb->as_compiled_method_or_null() : NULL; CompiledMethod* nm = (cb != NULL) ? cb->as_compiled_method_or_null() : NULL;
if (nm != NULL && nm->has_unsafe_access()) { if (nm != NULL && nm->has_unsafe_access()) {
// We don't really need a stub here! Just set the pending exeption and // We don't really need a stub here! Just set the pending exception and
// continue at the next instruction after the faulting read. Returning // continue at the next instruction after the faulting read. Returning
// garbage from this read is ok. // garbage from this read is ok.
thread->set_pending_unsafe_access_error(); thread->set_pending_unsafe_access_error();
@ -329,7 +329,7 @@ bool PosixSignals::pd_hotspot_signal_handler(int sig, siginfo_t* info,
} else if ((thread->thread_state() == _thread_in_vm || } else if ((thread->thread_state() == _thread_in_vm ||
thread->thread_state() == _thread_in_native) && thread->thread_state() == _thread_in_native) &&
sig == SIGBUS && thread->doing_unsafe_access()) { sig == SIGBUS && thread->doing_unsafe_access()) {
// We don't really need a stub here! Just set the pending exeption and // We don't really need a stub here! Just set the pending exception and
// continue at the next instruction after the faulting read. Returning // continue at the next instruction after the faulting read. Returning
// garbage from this read is ok. // garbage from this read is ok.
thread->set_pending_unsafe_access_error(); thread->set_pending_unsafe_access_error();

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -47,7 +47,7 @@ void MacroAssembler::int3() {
// Warning: This mechanism assumes that we only attempt to get the // Warning: This mechanism assumes that we only attempt to get the
// thread when we are nested below a call wrapper. // thread when we are nested below a call wrapper.
// //
// movl reg, fs:[0] Get exeception pointer // movl reg, fs:[0] Get exception pointer
// movl reg, [reg + thread_ptr_offset] Load thread // movl reg, [reg + thread_ptr_offset] Load thread
// //
void MacroAssembler::get_thread(Register thread) { void MacroAssembler::get_thread(Register thread) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -68,7 +68,7 @@ ExceptionHandlerTable::ExceptionHandlerTable(int initial_size) {
ExceptionHandlerTable::ExceptionHandlerTable(const CompiledMethod* cm) { ExceptionHandlerTable::ExceptionHandlerTable(const CompiledMethod* cm) {
_table = (HandlerTableEntry*)cm->handler_table_begin(); _table = (HandlerTableEntry*)cm->handler_table_begin();
_length = cm->handler_table_size() / sizeof(HandlerTableEntry); _length = cm->handler_table_size() / sizeof(HandlerTableEntry);
_size = 0; // no space allocated by ExeptionHandlerTable! _size = 0; // no space allocated by ExceptionHandlerTable!
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -132,7 +132,7 @@ static void handle_dcmd_result(outputStream* output,
const bool startup = DCmd_Source_Internal == source; const bool startup = DCmd_Source_Internal == source;
if (HAS_PENDING_EXCEPTION) { if (HAS_PENDING_EXCEPTION) {
handle_pending_exception(output, startup, PENDING_EXCEPTION); handle_pending_exception(output, startup, PENDING_EXCEPTION);
// Don't clear excption on startup, JVM should fail initialization. // Don't clear exception on startup, JVM should fail initialization.
if (!startup) { if (!startup) {
CLEAR_PENDING_EXCEPTION; CLEAR_PENDING_EXCEPTION;
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -1174,7 +1174,7 @@ public class Cipher {
} }
// check if opmode is one of the defined constants // check if opmode is one of the defined constants
// throw InvalidParameterExeption if not // throw InvalidParameterException if not
private static void checkOpmode(int opmode) { private static void checkOpmode(int opmode) {
if ((opmode < ENCRYPT_MODE) || (opmode > UNWRAP_MODE)) { if ((opmode < ENCRYPT_MODE) || (opmode > UNWRAP_MODE)) {
throw new InvalidParameterException("Invalid operation mode"); throw new InvalidParameterException("Invalid operation mode");

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -38,7 +38,6 @@ import java.util.Map;
import java.util.Objects; import java.util.Objects;
import java.util.stream.Stream; import java.util.stream.Stream;
import jdk.internal.access.JavaLangInvokeAccess;
import jdk.internal.access.SharedSecrets; import jdk.internal.access.SharedSecrets;
public class CDS { public class CDS {
@ -224,7 +223,7 @@ public class CDS {
prt.println(line); prt.println(line);
} }
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException("IOExeption happens during drain stream to file " + throw new RuntimeException("IOException happens during drain stream to file " +
fileName + ": " + e.getMessage()); fileName + ": " + e.getMessage());
}}).start(); }}).start();
return fileName; return fileName;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -32,7 +32,6 @@ import sun.awt.CGraphicsDevice;
import sun.java2d.SurfaceData; import sun.java2d.SurfaceData;
import sun.java2d.metal.MTLLayer; import sun.java2d.metal.MTLLayer;
import sun.java2d.opengl.CGLLayer; import sun.java2d.opengl.CGLLayer;
import sun.lwawt.macosx.CFLayer;
import sun.lwawt.LWWindowPeer; import sun.lwawt.LWWindowPeer;
import sun.lwawt.PlatformWindow; import sun.lwawt.PlatformWindow;
import sun.util.logging.PlatformLogger; import sun.util.logging.PlatformLogger;
@ -199,7 +198,7 @@ public class CPlatformEmbeddedFrame implements PlatformWindow {
/* /*
* The method could not be implemented due to CALayer restrictions. * The method could not be implemented due to CALayer restrictions.
* The exeption enforce clients not to use it. * The exception enforces clients not to use it.
*/ */
@Override @Override
public boolean isUnderMouse() { public boolean isUnderMouse() {

View file

@ -31,7 +31,7 @@
package sun.security.krb5; package sun.security.krb5;
/** /**
* KrbCryptoExceptoin is a wrapper exception for exceptions thrown by JCE. * KrbCryptoException is a wrapper exception for exceptions thrown by JCE.
* *
* @author Yanni Zhang * @author Yanni Zhang
*/ */
@ -39,7 +39,7 @@ public class KrbCryptoException extends KrbException {
private static final long serialVersionUID = -1657367919979982250L; private static final long serialVersionUID = -1657367919979982250L;
public KrbCryptoException (String s) { public KrbCryptoException(String s) {
super(s); super(s);
} }
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -281,7 +281,7 @@ public class ownedmonitors001 {
Value value = debuggeeRef.getValue(field); Value value = debuggeeRef.getValue(field);
expMonitors.add((ObjectReference)value); expMonitors.add((ObjectReference)value);
} catch (Exception e) { } catch (Exception e) {
log3("Unexpected excption while getting ObjectReference for monitors"); log3("Unexpected exception while getting ObjectReference for monitors");
testExitCode = FAILED; testExitCode = FAILED;
} }
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -267,7 +267,7 @@ public class exception001 {
JDWP.SuspendPolicy.ALL); JDWP.SuspendPolicy.ALL);
log.display(" ... breakpoint reached with threadID: " + testedThreadID); log.display(" ... breakpoint reached with threadID: " + testedThreadID);
// get excepion objectID value for static field // get exception objectID value for static field
log.display("Getting exception objectID from static field: " + EXCEPTION_FIELD_NAME); log.display("Getting exception objectID from static field: " + EXCEPTION_FIELD_NAME);
JDWP.Value value = debugee.getStaticFieldValue(testedClassID, EXCEPTION_FIELD_NAME, JDWP.Tag.OBJECT); JDWP.Value value = debugee.getStaticFieldValue(testedClassID, EXCEPTION_FIELD_NAME, JDWP.Tag.OBJECT);
exceptionObjectID = ((Long)value.getValue()).longValue(); exceptionObjectID = ((Long)value.getValue()).longValue();

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2010, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -69,7 +69,7 @@ public abstract class MlvmOOMTest extends MlvmTest {
/** /**
* Checks the OOME type is expected. * Checks the OOME type is expected.
* Method just exits if OOME is expected and throws an exeption if not. * Method just exits if OOME is expected and throws an exception if not.
* @param oome thrown by {@link #eatMemory(List)} * @param oome thrown by {@link #eatMemory(List)}
*/ */
protected abstract void checkOOME(OutOfMemoryError oome); protected abstract void checkOOME(OutOfMemoryError oome);

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -41,7 +41,7 @@ import org.testng.annotations.Test;
* @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest
* @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4987574 * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4987574
* @run testng/othervm validation.Bug4987574 * @run testng/othervm validation.Bug4987574
* @summary Test schemaFactory.newSchema doesn't throw NullPointerExceptio for empty schema. * @summary Test schemaFactory.newSchema doesn't throw NullPointerException for empty schema.
*/ */
@Listeners({jaxp.library.FilePolicy.class}) @Listeners({jaxp.library.FilePolicy.class})
public class Bug4987574 { public class Bug4987574 {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -672,7 +672,7 @@ public class AutoTestOnTop {
} catch (Exception e) { } catch (Exception e) {
error("Test failed: stage#" + stageNum + "action #" + actNum + ": " + msgCase + ": " + msgAction + error("Test failed: stage#" + stageNum + "action #" + actNum + ": " + msgCase + ": " + msgAction +
": setAlwaysOnTop(" + value + ") called at state " + msgVisibility + ": setAlwaysOnTop(" + value + ") called at state " + msgVisibility +
" threw exeption " + e); " threw exception " + e);
} }
} }
@ -685,7 +685,7 @@ public class AutoTestOnTop {
} catch (Exception e) { } catch (Exception e) {
error("Test failed: stage #" + stageNum + ", action # " + actNum + ": " + msgCase + ": " + msgAction + error("Test failed: stage #" + stageNum + ", action # " + actNum + ": " + msgCase + ": " + msgAction +
": isAlwaysOnTop() called at state " + msgVisibility + ": isAlwaysOnTop() called at state " + msgVisibility +
" threw exeption " + e); " threw exception " + e);
} }
return result; return result;
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -76,7 +76,7 @@ class DnDSource extends Button implements Transferable,
* a Drag gesture has been recognized * a Drag gesture has been recognized
*/ */
int iProblem = 0; int iProblem = 0;
String[] problem = {"unready", "throw exeption", "good"}; String[] problem = {"unready", "throw exception", "good"};
public void dragGestureRecognized(DragGestureEvent dge) { public void dragGestureRecognized(DragGestureEvent dge) {
System.out.println("starting Drag"); System.out.println("starting Drag");
if( !DragSource.isDragImageSupported() ) { if( !DragSource.isDragImageSupported() ) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -126,7 +126,7 @@ public class StackTraceSerialization {
* Returns true if e1 and e2 have equal stack traces and their * Returns true if e1 and e2 have equal stack traces and their
* causes are recursively equal (by the same definition) and their * causes are recursively equal (by the same definition) and their
* suppressed exception information is equals. Returns false or * suppressed exception information is equals. Returns false or
* throws NullPointerExeption otherwise. * throws NullPointerException otherwise.
*/ */
private static boolean equal(Throwable t1, Throwable t2) { private static boolean equal(Throwable t1, Throwable t2) {
return t1==t2 || return t1==t2 ||

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -71,7 +71,7 @@ public class Bug7104012 {
} }
if (err) { if (err) {
throw new RuntimeException("Unexpected exeption."); throw new RuntimeException("Unexpected exception.");
} }
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -43,7 +43,7 @@ public class SerialJavaObjectTests extends BaseTest {
} }
/* /*
* Validate that an SerialExcepion is thrown when the object specified * Validate that a SerialException is thrown when the object specified
* contains public static fields * contains public static fields
*/ */
@Test(expectedExceptions = SerialException.class, enabled = false) @Test(expectedExceptions = SerialException.class, enabled = false)