Dynamically-imposed field and method type restrictions for managed execution environments
Abstract
A data structure (e.g., field, method parameter, or method return value) is defined by a descriptor to be of a particular type, which imposes a first set of restrictions on values assumable by the data structure. Separately, the data structure is associated with a type restriction that defines a second set of restrictions that further restricts the values assumable by the data structure. The descriptor and type restriction are encoded separately in a program binary. Responsive to identifying a value for the data structure that (a) is not forbidden by the first set of restrictions defined the descriptor and (b) is forbidden by the second set of restrictions defined by the type restriction, a runtime environment may perform a restrictive operation, such as: blocking storage of the value to a field; blocking passing of the value to a method parameter; or blocking return of the value from a method.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
One or more non-transitory computer readable storage media comprising instructions which, when executed by one or more hardware processors, causes performance of operations comprising: identifying a particular type that is (a) defined by a descriptor that defines a first set of restrictions for values of objects of the particular type and (b) corresponds to one of: a field type, a method parameter type or a method return type; receiving, at a managed runtime environment, a type restriction that defines a second set of restrictions that further restricts the values of objects of the particular
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (17)
Non-Patent Literature (5)
- “clojure.spec—Rationale and Overview,” Retrieved at https://clojure.org/about/spec, Retrieved on Jan. 17, 2022, pp. 1-15.
- “Common Descriptor Concepts,” Retrieved at https://www.eclipse.org/eclipselink/documentation/2.6/concepts/descriptors001.htm, Retrieved on Oct. 31, 2017, pp. 1-6.
- “JEP 218: Generics over Primitive Types” Retrieved at https://openjdk.java.net/jeps/218, Retrieved on 2022, pp. 1-4.
- “Project Valhalla” Retrieved at https://openjdk.java.net/projects/valhalla/, Retrieved on Dec. 2021, pp. 1-3.
- “Statically typed Javascript: Why and How,” Retrieved at https://developerhowto.com/2019/01/05/statically-typed-javascript-why-and-how/, Retrieved on Jan. 2019, pp. 1-6.