-
Enhancement
-
Resolution: Fixed
-
P3
-
5.0
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2143760 | 6u4 | Wei Tao | P3 | Resolved | Fixed | b03 |
JDK-2143759 | 5.0u14 | Wei Tao | P3 | Resolved | Fixed | b02 |
javac in 5.0ux can not compile try-catch block having a lot of "return".
REPRODUCE :
1) Try to compile the attached .java program.
You will see the following message.
Note: the messages in () originally appears in Japanese.
K:\javac-ompiler>javac *.java
TEST_FINALLY10B.java:2006: (too big code in try statement)
} catch(Exception e) { e.printStackTrace();
^
TEST_FINALLY10B.java:5: (too big code in try statement)
try {
^
TEST_FINALLY10B.java:4: (too big code in )
static public int func(int i) {
^
(3 errors)
NOTE:
This problem does not occur in 1.4.2_XX javac.
REPRODUCE :
1) Try to compile the attached .java program.
You will see the following message.
Note: the messages in () originally appears in Japanese.
K:\javac-ompiler>javac *.java
TEST_FINALLY10B.java:2006: (too big code in try statement)
} catch(Exception e) { e.printStackTrace();
^
TEST_FINALLY10B.java:5: (too big code in try statement)
try {
^
TEST_FINALLY10B.java:4: (too big code in )
static public int func(int i) {
^
(3 errors)
NOTE:
This problem does not occur in 1.4.2_XX javac.
- backported by
-
JDK-2143759 javac in 5.0ux can not compile try-catch block which has a lot of "return"
- Resolved
-
JDK-2143760 javac in 5.0ux can not compile try-catch block which has a lot of "return"
- Resolved
- relates to
-
JDK-6276307 javac consumes too much memory generating stackmap in extreme cases
- Resolved
-
JDK-6491544 Compiling try-finally within code size limit
- Open