You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Elliot Metsger (JIRA)" <ji...@apache.org> on 2007/02/28 21:15:54 UTC

[jira] Resolved: (PLUTO-313) o.a.p.core.ContainerInvocation.clearInvocation() requires 1.5

     [ https://issues.apache.org/jira/browse/PLUTO-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger resolved PLUTO-313.
----------------------------------

    Resolution: Fixed

David provided a better unit test.

ContainerInvocation compiles fine under 1.4.

> o.a.p.core.ContainerInvocation.clearInvocation() requires 1.5 
> --------------------------------------------------------------
>
>                 Key: PLUTO-313
>                 URL: https://issues.apache.org/jira/browse/PLUTO-313
>             Project: Pluto
>          Issue Type: Bug
>          Components: portlet container
>    Affects Versions: 1.1.0
>            Reporter: Elliot Metsger
>         Assigned To: Elliot Metsger
>            Priority: Minor
>             Fix For: 1.1.1
>
>         Attachments: ContainerInvocationTest.java
>
>
> In org.apache.pluto.core.ContainerInvocation:
>     private static final InheritableThreadLocal CONTAINERS =
>         new InheritableThreadLocal();
> ...
>     public static void clearInvocation() {
>         CONTAINERS.remove();
>     }
> The remove() method was added to InheritableThreadLocal in 1.5.  I've attached a unit test, that when compiled with 1.5 with -target set to 1.4, fails when run on a 1.4 JVM.
> Unit test compiled with a Java 1.5 javac with -target 1.4
> Unit test run with a Java 1.4 java:
> There was 1 error:
> 1) testClearInvocation(org.apache.pluto.core.ContainerInvocationTest)java.lang.NoSuchMethodError: java.lang.ThreadLocal.remove()V
>         at org.apache.pluto.core.ContainerInvocation.clearInvocation(ContainerInvocation.java:64)
>         at org.apache.pluto.core.ContainerInvocationTest.testClearInvocation(ContainerInvocationTest.java:26)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> FAILURES!!!
> Tests run: 2,  Failures: 0,  Errors: 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.