We found out recently that when compiling an objectscript class that has a java projection, using the -d flag, it ignores it for the projection part:
After talking with intersystems luckily the've provided a solution that will be included in the next release: