forcedotcom / wsc

Other
269 stars 223 forks source link

OrganizationValue.java out of memory during compilation fix #309

Closed amallemadugula1 closed 1 year ago

amallemadugula1 commented 1 year ago

https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE0000189LjjYAE/view

Updated crossinstance.wsdl cannot be checked in because resulting wsc stub OrganizationValue.java cannot be compiled due to too many enum values exceeding the byte limit for the java compiler.

This fixes it by removing removing the valuesToEnums field in the enum. This field was added here long ago to allow for hyphens. This functionality will now be removed only for OrganizationValues.java. This brings it under the byte limit.

This is only hard coded for OrganizationValues.java. The rest of the generated files should remain the same. Eventually a solution should be found such that this hard coded exception doesn't have to exist.