this post was submitted on 22 Jun 2023
15 points (100.0% liked)

Programming Horror

2162 readers
1 users here now

Welcome to Programming Horror!

This is a place to share strange or terrible code you come across.

For more general memes about programming there's also Programmer Humor.

Looking for mods. If youre interested in moderating the community feel free to dm @Ategon@programming.dev

Rules

Credits

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] porgamrer@programming.dev 1 points 2 years ago

Is that really true? I swear I've seen java codebases with methods thousands of lines long. What can possibly overflow in such a small amount of code?

The only thing that sounds possible to me is a value stored as a u8 or u16 in the bytecode format, with the assumption that methods are never very big, but that would still be surprising given that it's a stack based VM.