You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the latest JEP401, a "regulated" constructor is introduced:
The constructor of a value class is regulated, meaning that its body must not make any use of this, except to write to an instance field. This ensures a value object does not "escape" to the rest of the program during construction.
The regulated constructor will be represented by modifier 0x0800 in the class file.
Class format check should fail if a value class defines a non-regulated constructor. RT verification may need to be updated as well.
The text was updated successfully, but these errors were encountered:
#18309 (comment) is used to document the actual assigned components and assignees. It enables us to gather the actual values for comparison against the recommended values in the future. This issue was opened before triagerx was enabled. Otherwise, it would have the comment about the recommended components and assignees.
The plan is to let triagerx run for a while and reassess it later. We welcome your feedback in the upcoming survey.
In the latest JEP401, a "regulated" constructor is introduced:
The constructor of a value class is regulated, meaning that its body must not make any use of this, except to write to an instance field. This ensures a value object does not "escape" to the rest of the program during construction.
More details can be found in the JEP.
The regulated constructor will be represented by modifier
0x0800
in the class file.Class format check should fail if a value class defines a non-regulated constructor. RT verification may need to be updated as well.
The text was updated successfully, but these errors were encountered: