Package dev.gmitch215.bytebox.time
Class Substitutions
java.lang.Object
org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy
dev.gmitch215.bytebox.time.Substitutions
- All Implemented Interfaces:
org.teavm.extension.spi.substitution.SubstitutionPolicy
public final class Substitutions
extends org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy
Points
java.time at an implementation of it, and its rule provider at this package's.
The class library has no java.time at all - not a subset, nothing - so a program using a
date fails while it is being compiled. What it is pointed at is ThreeTen-Backport, the reference
implementation of the same API by the same author, which compiles here unchanged apart from its
timezone database.
That database is the second rule. Left alone it reads a compiled 108 KB copy of the timezone rules
out of the binary through a service lookup; pointed at ZoneRulesProvider it reads the
platform's, and the copy along with its reader stops being reachable.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(org.teavm.extension.spi.substitution.SubstitutionSink sink) Methods inherited from class org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy
inPackage, inPackage, named, namePattern, not
-
Constructor Details
-
Substitutions
public Substitutions()
-
-
Method Details
-
contribute
public void contribute(org.teavm.extension.spi.substitution.SubstitutionSink sink)
-