Use Advanced Search to search the entire archive.
UnsupportedClassVersionError in ME 8 SDK
- From: Werner Keil <
>
- To: "
" <
>
- Subject: UnsupportedClassVersionError in ME 8 SDK
- Date: Sat, 20 Sep 2014 15:53:52 +0200
Dear Experts,
I created this bug
https://java.net/jira/browse/UNITSOFMEASUREMENT-57 after
I observed a consistent error running a small demo app under ME 8 SDK. I
first saw itwhen I thought of showing an ME 8 demo at JavaZone.
I cannot really explain why it happens. Fact is, a combination of older,
yet Java 8 (EA) built JARs
unit-api-0.5 (
https://github.com/unitsofmeasurement/repository/tree/master/javax/measure/unit-api/0.5)
and
unit-api-enum-impl-0.4 (
https://github.com/unitsofmeasurement/repository/tree/master/org/unitsofmeasurement/impl/unit-api-enum-impl/0.4)
works perfectly fine.
I call this (NetBeans 8) library "Unit-API ME Stable" since its content
works for ME SDK and the example as in
https://github.com/unitsofmeasurement/unit-demos/tree/master/javame/medemo
The NB project contains everything to try locally (please do if you can)
with the "Stable" demo code enabled by default.
To test the latest code, please build from source or take the GeoAPI
Jenkins output for Unit-API. It'll also fail. Any combination of the older
enum impl with the latest Unit-API JAR (>=0.6-SNAPSHOT) fails, so do
identically built latest JARs with Java 7 (according to MEEP 8 and CLDC 8
all JARs were built with that)
If you want to test it, please let me know if you have questions.
I BCC relevant Spec Leads of JSRs 360, 361 and Terrence for the ME 8 SDK.
In case they have seen something similar reported by others. It happens
fairly consitent across all Java versions (tried 6-9;-) and unless I missed
the exact same Java 8 EA version for these 2 old JARs even that seems to
cause the error if you build the same JAR again.
It feels like a problem/bug in ME SDK or caused by some compiler change,
but it is almost certain to happen a lot unless we know exactly how to
prevent it.
Good News last, the "°Celsius" problem vanished with ME 8 Final:-)
Regards,
Werner
UnsupportedClassVersionError in ME 8 SDK
|
Werner Keil |
09/20/2014 |