Will it cause corrosion around the barrel?

If you neglect your firearm you can expect corrosion(and not just on the barrel), The type of anodizing used is the same as what the military uses to prevent corrosion between aluminum and steel. Keep your gun clean and you should have no problems.