This project aims to provide a more complete java.util.Calendar
. Large portions of the source and javadoc have been copied from the Apache Harmony project.
- TimeZone ID=GMT is required by
java.util.GregorianCalendar
. - Serialization is not supported, and all support classes and forms including magic methods such as
writeReplace
have been removed.
- See j2cl-java-util-locale-annotation-processor for more info about selecting which locales get bundled.
- See j2cl-java-util-TimeZone-annotation-processor for more info about selecting which timezones get bundled.
- See j2cl-locale for more info about logging.
java.util.Calendar
- The only calendar implementation available is
java.util.GregorianCalendar
. java.util.BuddhistCalendar
is not yet implemented, ticketjava.util.JapaneseImperialCalendar
is not yet implemented, ticket
The j2cl-maven-plugin
will shade the source during the transpile phase, so Calendar
is available in javascript as java.util.Calendar
.
Annotation processors from class path must be enabled as some tests test the output of generated classes.
The star/wildcard may need to be escaped with a backslash.