Change getCanonicalName() to return StringData.