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/21 23:37:05 UTC

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

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


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.


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

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger reassigned PLUTO-313:
------------------------------------

    Assignee: Elliot Metsger

> 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.


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

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger closed PLUTO-313.
--------------------------------


> 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
>            Assignee: 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.


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

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger updated PLUTO-313:
---------------------------------

    Fix Version/s: 1.1.1
         Priority: Minor  (was: Major)

Updating Fix For.  1.1.0 will ship without this bug being fixed, but 1.1.1 will follow shortly after, and will contain the fix.

> 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
>            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.


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

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger updated PLUTO-313:
---------------------------------

    Attachment: ContainerInvocationTest.java

Attaching unit test ContainerInvocationTest.java.

> 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
>         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.