try {
Object obj = NamingManager.getObjectInstance
(entry.value, name, this, env);
- boolean singleton = Boolean.parseBoolean(
- (String) ((ResourceRef) entry.value).get(
- "singleton").getContent());
- if (singleton) {
- entry.type = NamingEntry.ENTRY;
- entry.value = obj;
+ if(entry.value instanceof ResourceRef) {
+ boolean singleton = Boolean.parseBoolean(
+ (String) ((ResourceRef) entry.value).get(
+ "singleton").getContent());
+ if (singleton) {
+ entry.type = NamingEntry.ENTRY;
+ entry.value = obj;
+ }
}
return obj;
} catch (NamingException e) {
PersistentManager and associated code clean-up. Patch provided by
Tiago Batista. (markt)
</fix>
+ <fix>
+ <bug>50252</bug>: Prevent ClassCastException when using a
+ <ResourceLink>. Patch provided by Eiji Takahashi. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">