JDK-8180934 : PutfieldError failed with UnsupportedClassVersionError
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8u152
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2017-05-24
  • Updated: 2017-11-29
  • Resolved: 2017-05-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u152 b05Fixed
Related Reports
Relates :  
Description
Command: ./jdk1.8.0_152/bin/java -jar ./jtreg.jar -a -verbose:summary -conc:auto -ignore:quiet -timeoutFactor:5 -agentvm -dir:./jdk8u152-b04/hotspot/test -w:./hotspot -r:./hotspot runtime/Final/PutfieldError.java 

Error Trace:
java.lang.UnsupportedClassVersionError: Bad has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at PutfieldError.main(PutfieldError.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.lang.Thread.run(Thread.java:748)

JavaTest Message: Test threw exception: java.lang.UnsupportedClassVersionError: Bad has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
JavaTest Message: shutting down test
Comments
RULE "runtime/Final/PutfieldError.java" Exception java.lang.UnsupportedClassVersionError: Bad has been compiled by a more recent version of the Java Runtime (class file version ...), this version of the Java Runtime only recognizes class file versions up to ...
05-07-2017

hotspot/test/runtime/Final/Bad.jasm got back-ported to JDK-8u with version 53 in the source: super class Bad version 53:0 { ...
24-05-2017