8288573: Make Executable.getParameterCount() actually abstract

Reviewed-by: iris, alanb, jpai
This commit is contained in:
Joe Darcy 2022-06-17 16:57:38 +00:00
parent af64d316c0
commit 47b86690b6

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -253,9 +253,7 @@ public abstract sealed class Executable extends AccessibleObject
* @return The number of formal parameters for the executable this
* object represents
*/
public int getParameterCount() {
throw new AbstractMethodError();
}
public abstract int getParameterCount();
/**
* Returns an array of {@code Type} objects that represent the