2 Replies Latest reply on Mar 6, 2004 7:20 PM by Adrian Brock

    Using java.lang.Character in env-entry fails ...

    rkettrey Newbie

      I have the following excerpt in my ejb-jar file:

      ...
      <env-entry>
       <description>A description</description>
       <env-entry-name>someName</env-entry-name>
       <env-entry-type>java.lang.Character</env-entry-type>
       <env-entry-value>B</env-entry-value>
      </env-entry>
      ...

      When I look this up using the following code, I get a ClassCastException:
      char ch = ((Character)context.lookup("someName")).charValue();

      I used a debugger and the class type is coming back as java.lang.String! Ooops! Easy work-arounds I know, but wondered if I was the only one seeing this or if we have a small bug in Jboss (3.2.3)???