did I do the wrong thing?

I'm very open with my boyfriend who've I've been with for almost a year and a half. I told him that when I was 11, I made a lot of immature and stupid choices like dating a 16 year old. I reassured him and told him that nothing happened and I was very anti-sexual back then and all we did was say stuff like "I love you", but of course we didn't mean it I was 11. I admitted that what I did was unsettling, how wrong it was, how disgusting it was and how ashamed I was of my 11 year old-self. But he took this news unwell and said it made him a little mad and he wished I never told him because it makes him uncomfortable to think about that, and I can understand why but now he is sort of giving me the cold shoulder and not being as nice as he always is. Did I do the wrong thing by being too open with him?
Update:
We were talking about that stuff, so I brought it up. After being diagnosed for PTSD a couple years ago from being oraly raped in Pre-K, I was told that because of the event that it is most likely the reason it provoked my wrong behavior. He knew I was orally raped, so I made the wrong assumption of him knowing why I did date older guys.