cast error with java.lang.String cannot be cast to class java.lang.Boolean

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

cast error with java.lang.String cannot be cast to class java.lang.Boolean

Michael (maillists) Dag

Moving some of my code to run on Pi 400 with openjdk version "11.0.8" 2020-07-14

OpenJDK Runtime Environment (build 11.0.8+10-post-Raspbian-1deb10u1)

OpenJDK Server VM (build 11.0.8+10-post-Raspbian-1deb10u1, mixed mode)

 

I run into this cast error: (tried NetRexxR 3.0.8 and 3.0.9)

Exception in thread "main" java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap')

 

Runs fine on Windows 10 with java version "1.8.0_202"

Java(TM) SE Runtime Environment (build 1.8.0_202-b08)

Java HotSpot(TM) Client VM (build 25.202-b08, mixed mode, sharing)

 

Is this related to OpenJDK 11? Or did I run into something else?

 

Michael Dag @ MQSystems


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: cast error with java.lang.String cannot be cast to class java.lang.Boolean

Marc Remes-2
Hi Michael,

NetRexx 3.x is not capable to find classes in the Java Platform Module System introduced from Java 9.

Can you try NetRexx 4.01 alpha, announced by René on December 9th?

Note, this release is still alpha, I'm working with René on a beta release.

Marc

BTW, I posted this message some days ago, but received the same timeout as Fernando.
The Reply-To is erroneously set to [hidden email].
When replying, reply to [hidden email]..

On 12/18/20 2:17 PM, Marc Remes wrote:

> Hi Michael,
>
> NetRexx 3.x is not capable to find classes in the Java Platform Module System introduced from Java 9.
>
> Can you try NetRexx 4.01 alpha, announced by René on December 9th?
>
> Note, this release is still alpha, I'm working with René on a beta release.
>
> Marc
>
> On 12/18/20 1:01 PM, maillists (@MQSystems) wrote:
>> Moving some of my code to run on Pi 400 with openjdk version "11.0.8" 2020-07-14
>>
>> OpenJDK Runtime Environment (build 11.0.8+10-post-Raspbian-1deb10u1)
>>
>> OpenJDK Server VM (build 11.0.8+10-post-Raspbian-1deb10u1, mixed mode)
>>
>> I run into this cast error: (tried NetRexxR 3.0.8 and 3.0.9)
>>
>> Exception in thread "main" java.lang.ClassCastException: class java.lang.String cannot be cast to class
>> java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap')
>>
>> Runs fine on Windows 10 with java version "1.8.0_202"
>>
>> Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
>>
>> Java HotSpot(TM) Client VM (build 25.202-b08, mixed mode, sharing)
>>
>> Is this related to OpenJDK 11? Or did I run into something else?
>>
>> Michael Dag @ MQSystems
>>
>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>>
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/


OpenPGP_signature (505 bytes) Download Attachment