Java Coding 65kb Overflow Solution Question

Asked 2 years ago, Updated 2 years ago, 100 views

There was a lot of Java coding, so there was an overflow.

The code of method main(String[]) is exceeding the 65535 bytes limit

I want to continue coding. What should I do?

Eclipse Oxigen is in use

java overflow

2022-09-22 18:10

1 Answers

It's a spec. I have no choice but to keep it because it's a specification if it changes in the future.

The fact that end_pc is exclusive is a historical mistake in the design of the Java Virtual Machine: if the Java Virtual Machine code for a method is exactly 65535 bytes long and ends with an instruction that is 1 byte long, then that instruction cannot be protected by an exception handler. A compiler writer can work around this bug by limiting the maximum size of the generated Java Virtual Machine code for any method, instance initialization method, or static initializer (the size of any code array) to 65534 bytes.


2022-09-22 18:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.