I have built a custom MEC mapping that does some parsing and formatting of date strings. When I try to publish it I get the following error:
Mapping contains unauthorized code
followed by mangled snippets of code from a few Java functions in which I use LocalDateTime and DateTimeFormatter classes.
No compiler errors are shown inside the editor when I open those functions. Yet it seems that the package java.time cannot be referenced by the Java code running on the server.
Has anyone run into this issue before? What are the possible workarounds?