User Tools

Site Tools


tutorial:accesswideners

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tutorial:accesswideners [2023/02/01 17:59] modmuss50tutorial:accesswideners [2024/04/01 19:23] – [Access Wideners] explain that to have access wideners show up in the IDE the programmer must refresh the gradle project. matjojo
Line 8: Line 8:
     * If you want to subclass a class with only (package) private constructors, wideners are a good choice.     * If you want to subclass a class with only (package) private constructors, wideners are a good choice.
  
-In order for access widener changes to show up in the decompiled source, run the ''genSources'' gradle task.+In order for access widener changes to show up in the decompiled source, run the ''genSources'' gradle task and then reload the gradle project in your IDE.
  
 ===== Requirements ===== ===== Requirements =====
Line 20: Line 20:
  
 <code [enable_line_numbers="true"]> <code [enable_line_numbers="true"]>
-accessWidener v1 <namespace>+accessWidener v2 <namespace>
 </code> </code>
  
Line 138: Line 138:
  
 The error messages can be a little cryptic. For example, if you make a mistake in specifying a field, the error doesn't say whether the name or the type is the problem For example, if it says it cannot find the field "''fooI''", it could mean there is no field named ''foo'', or that it exists but isn't an ''int'' (''I''). The error messages can be a little cryptic. For example, if you make a mistake in specifying a field, the error doesn't say whether the name or the type is the problem For example, if it says it cannot find the field "''fooI''", it could mean there is no field named ''foo'', or that it exists but isn't an ''int'' (''I'').
 +
 +===== V2 changes =====
 +
 +With the v2 version, the ''transitive-*'' prefixed keywords have been added:
 +
 +  * ''transitive-accessible''
 +  * ''transitive-extendable''
 +  * ''transitive-mutable''
 +
 +They differ from their regular, non-prefixed variants in that they also apply to mods that depend on this one.
 +
 +
 +
tutorial/accesswideners.txt · Last modified: 2024/04/29 21:00 by ayutac