Support load of extensions without specifying trailing $, see #2496
* Backwards compatible, i.e. still possible to use $ * DynamicAccess tries first with $ in getObjectFor, then falls back to fqcn as is
This commit is contained in:
parent
8420c35de0
commit
9ec7645617
6 changed files with 10 additions and 7 deletions
|
|
@ -64,6 +64,7 @@ public class JavaExtension {
|
|||
|
||||
@Test
|
||||
public void mustBeAccessible() {
|
||||
assertTrue(system.hasExtension((TestExtensionId.TestExtensionProvider)));
|
||||
assertSame(system.extension(TestExtensionId.TestExtensionProvider).system, system);
|
||||
assertSame(TestExtensionId.TestExtensionProvider.apply(system).system, system);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue