tutorial:accesswideners
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:accesswideners [2020/06/15 05:53] – explain how to remap the access widener in Loom with custom task wornitskeyitem | tutorial:accesswideners [2020/06/22 14:13] – Clarify the circumstances where an access widener should and should not be used earthcomputer | ||
---|---|---|---|
Line 3: | Line 3: | ||
Access wideners provide a way to loosen the access limits of classes, methods or fields. Access wideners are similar to the commonly known Access Transformers. | Access wideners provide a way to loosen the access limits of classes, methods or fields. Access wideners are similar to the commonly known Access Transformers. | ||
- | Access wideners should only be used where mixin does not currently provide a means to do so. | + | Access wideners should |
+ | There are currently only 2 cases where mixins are not sufficient: | ||
+ | * Needing to access a private class, especially for the purpose of shadowing or accessing a field or method in a mixin. | ||
+ | * Being able to override final methods or subclass final classes. | ||
===== Requirements ===== | ===== Requirements ===== |
tutorial/accesswideners.txt · Last modified: 2024/06/09 05:33 by haykam