r/badcode • • Apr 07 '21

java Apparently Java can only handle 255 parameters in a constructor...

Post image
4.0k Upvotes

249 comments sorted by

View all comments

Show parent comment

9

u/[deleted] Apr 07 '21

That or it was the result of codegen, which does sound a bit more reasonable provided I don’t have to use the constructor myself without some kind of builder

Even so sounds incredibly situational to be reasonable lol

2

u/[deleted] Apr 07 '21

I’ve had a similar experience when I found out that enums have member limits too