port errata_channel_intersection.pxt to java