Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045407 | 8u25 | Christian Tornqvist | P3 | Resolved | Fixed | b01 |
JDK-8040607 | 8u20 | Christian Tornqvist | P3 | Closed | Fixed | b12 |
JDK-8053325 | emb-8u26 | Christian Tornqvist | P3 | Resolved | Fixed | b17 |
A DESCRIPTION OF THE REQUEST :
I tried to run a jar file and got this crash message: Exception in thread " main " java.lang.UnsupportedClassVersionError: com/ka/excelcmp/ExcelCompare : Unsupported major.minor version 51.0.
To an ordinary user, such a crash would directly lead to giving up.
Instead, the message should communicate the fact that I tried to run a program that required a version of Java that was incompatible because it was at least one major revision later than the version that is installed.
JUSTIFICATION :
This is an exception that is seen by end users and therefore it should tell them what they need to know, either in English or with a URL to a web page that explains the problem.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Best would be for every exception message to include a URL to a page that first explains what it might mean to an end user, and then farther down the page explains what it might mean to a programmer, including a link to the exception in the API documentation.
ACTUAL -
" Unsupported major.minor version 51.0 " , which is incomprehensible to an end user
I tried to run a jar file and got this crash message: Exception in thread " main " java.lang.UnsupportedClassVersionError: com/ka/excelcmp/ExcelCompare : Unsupported major.minor version 51.0.
To an ordinary user, such a crash would directly lead to giving up.
Instead, the message should communicate the fact that I tried to run a program that required a version of Java that was incompatible because it was at least one major revision later than the version that is installed.
JUSTIFICATION :
This is an exception that is seen by end users and therefore it should tell them what they need to know, either in English or with a URL to a web page that explains the problem.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Best would be for every exception message to include a URL to a page that first explains what it might mean to an end user, and then farther down the page explains what it might mean to a programmer, including a link to the exception in the API documentation.
ACTUAL -
" Unsupported major.minor version 51.0 " , which is incomprehensible to an end user
- backported by
-
JDK-8045407 Improve UnsupportedClassVersionError message
- Resolved
-
JDK-8053325 Improve UnsupportedClassVersionError message
- Resolved
-
JDK-8040607 Improve UnsupportedClassVersionError message
- Closed
- duplicates
-
JDK-8016445 UnsupportedClassVersionError should be more informative
- Closed
-
JDK-6707036 VM launcher should better describe supported classfile versions
- Closed
- relates to
-
JDK-8163549 Unsupported major.minor version error message should be enhanced
- Closed
(1 relates to)