Skip to content

Commit

Permalink
8288573: Make Executable.getParameterCount() actually abstract
Browse files Browse the repository at this point in the history
Reviewed-by: iris, alanb, jpai
  • Loading branch information
jddarcy committed Jun 17, 2022
1 parent af64d31 commit 47b8669
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/java.base/share/classes/java/lang/reflect/Executable.java
@@ -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
Expand Down Expand Up @@ -253,9 +253,7 @@ String sharedToGenericString(int modifierMask, boolean isDefault) {
* @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
Expand Down

0 comments on commit 47b8669

Please sign in to comment.