[ https://jira.terracotta.org/jira//browse/CDV-243?page=all ]

Hung Huynh closed CDV-243.
--------------------------


verified

> ConcurrentHashMap blows up if the key is a java.lang.Class
> ----------------------------------------------------------
>
>                 Key: CDV-243
>                 URL: https://jira.terracotta.org/jira//browse/CDV-243
>             Project: Community Development
>          Issue Type: Bug
>          Components: DSO:L1
>            Reporter: Steven Harris
>         Assigned To: Hung Huynh
>
> Take a java.util.concurrent.ConcurrentHashMap and try to do a 
> put(MyClass.class, "this is a test");
> you get this:
> java.lang.ClassCastException: java.lang.Class
>         at 
> com.tc.object.bytecode.ManagerImpl.shareObjectIfNecessary(ManagerImpl.java:548)
>         at 
> com.tc.object.bytecode.ManagerUtil.shareObjectIfNecessary(ManagerUtil.java:132)
>         at 
> java.util.concurrent.ConcurrentHashMap.__tc_hash(ConcurrentHashMap.java)
>         at 
> java.util.concurrent.ConcurrentHashMap.__tc_hash(ConcurrentHashMap.java)
>         at 
> java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:848)
>         at 
> com.tctest.ConcurrentHashMapTestApp.testPut1(ConcurrentHashMapTestApp.java:62)
>         at com.tctest.GenericTestApp.runMethod(GenericTestApp.java:144)
>         at com.tctest.GenericTestApp.runOp(GenericTestApp.java:138)
>         at com.tctest.GenericTestApp.doMutate(GenericTestApp.java:104)
>         at com.tctest.GenericTestApp.runTest(GenericTestApp.java:69)
>         at 
> com.tctest.runner.AbstractErrorCatchingTransparentApp.run(AbstractErrorCatchingTransparentApp.java:29)
>         at 
> com.tc.simulator.container.ApplicationRunner.run(ApplicationRunner.java:43)
>         at java.lang.Thread.run(Thread.java:613)
> End error contexts.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to