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
Original file line number Diff line number Diff line change
@@ -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

1 comment on commit 47b8669

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.