We have enabled platform encryption for managed packages in a developer edition org. We then started encrypting custom fields in our managed package. We expect to receive an error when we try to encrypt a field that is being used to filter a SOQL query. However, one field was encrypted despite being used in a SOQL query in the managed package. Now the class doing the query cannot be compiled because of the following error:
"Error: Compile Error: encrypted field 'xxx__c' cannot be filtered in a query call"
This query was in the package installed in the org when the field was enabled. I have unencrypted the field now but still cannot recompile the class or update the package because of the error. I asked a similar question in a "Pre-Release" org but did not find a solution.
What concerns me is that our customers will be able to encrypt fields and break our package. Any ideas how to prevent or resolve this issue?