< prev index next > test/jdk/java/util/ServiceLoader/BadProvidersTest.java
Print this page
public void testWithTwoFactoryMethods() throws Exception {
Path mods = compileTest(TEST1_MODULE);
var bytes = ClassFile.of().build(ClassDesc.of("p", "ProviderFactory"), clb -> {
clb.withSuperclass(CD_Object);
- clb.withFlags(AccessFlag.PUBLIC, AccessFlag.SUPER);
+ clb.withFlags(AccessFlag.PUBLIC, AccessFlag.IDENTITY);
var providerFactory$1 = ClassDesc.of("p", "ProviderFactory$1");
// public static p.Service provider()
clb.withMethodBody("provider", MethodTypeDesc.of(ClassDesc.of("p", "Service")),
< prev index next >