Skip to content

Commit fa6a01a

Browse files
committed
AbstractMethodError reported in jenkinsci#490 (comment)
1 parent 04f5ec1 commit fa6a01a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,10 @@ public <C extends Credentials> List<C> getCredentialsInItemGroup(@NonNull Class<
11901190
if (Util.isOverridden(CredentialsProvider.class, getClass(), "getCredentials", Class.class, ItemGroup.class, org.acegisecurity.Authentication.class, List.class)) {
11911191
return getCredentials(type, itemGroup, authentication == null ? null : org.acegisecurity.Authentication.fromSpring(authentication), domainRequirements);
11921192
}
1193-
throw new AbstractMethodError("Implement getCredentialsInItemGroup");
1193+
if (Util.isOverridden(CredentialsProvider.class, getClass(), "getCredentials", Class.class, ItemGroup.class, org.acegisecurity.Authentication.class)) {
1194+
return getCredentials(type, itemGroup, authentication == null ? null : org.acegisecurity.Authentication.fromSpring(authentication));
1195+
}
1196+
throw new AbstractMethodError("Implement getCredentialsInItemGroup from " + getClass());
11941197
}
11951198

11961199
/**

src/main/java/com/cloudbees/plugins/credentials/CredentialsStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public boolean hasPermission2(@NonNull Authentication a, @NonNull Permission per
189189
Permission.class)) {
190190
return hasPermission(org.acegisecurity.Authentication.fromSpring(a), permission);
191191
}
192-
throw new AbstractMethodError("Implement hasPermission2");
192+
throw new AbstractMethodError("Implement hasPermission2 from " + getClass());
193193
}
194194

195195
/**

0 commit comments

Comments
 (0)