+ @Override
+ void appendLoaders(final Set<LeafCodecClassLoader> newLoaders) {
+ // Root loader should never see the requirement for other loaders, as that would violate loop-free nature
+ // of generated code: if a binding class is hosted in root loader, all its references must be visible from
+ // the root loader and hence all the generated code ends up residing in the root loader, too.
+ throw new IllegalStateException("Attempted to extend root loader with " + newLoaders);
+ }
+