You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Alan Cabrera (JIRA)" <ji...@apache.org> on 2007/01/04 07:31:27 UTC

[jira] Created: (OPENEJB-433) Remove dependency on Sun Classes

Remove dependency on Sun Classes
--------------------------------

                 Key: OPENEJB-433
                 URL: https://issues.apache.org/jira/browse/OPENEJB-433
             Project: OpenEJB
          Issue Type: Task
    Affects Versions: 2.2, 3.0
            Reporter: Alan Cabrera


Remove dependency on Sun Classes

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

        

[jira] Updated: (OPENEJB-433) Remove dependency on Sun Classes in *ClassPath classes

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

David Blevins updated OPENEJB-433:
----------------------------------

    Description: 
Remove dependency on Sun Classes.

BasicURLClassPath, SystemClassPath and TomcatClassPath directly reference sun.misc.URLClassPath.  This reference is obtained using reflection and set accessible, so with a bit more reflection we should be able to remove the reference.


  was:
Remove dependency on Sun Classes.

JarUtils uses suntools.jar.Main to add an entry to an existing jar.  This could be replaced by creating a new temp jar with JarOutputStream copying all the data from the existing jar and adding the one new entry.  Then you swap the two files.

BasicURLClassPath, SystemClassPath and TomcatClassPath directly reference sun.misc.URLClassPath.  This reference is obtained using reflection and set accessible, so with a bit more reflection we should be able to remove the reference.


        Summary: Remove dependency on Sun Classes in *ClassPath classes  (was: Remove dependency on Sun Classes)

> Remove dependency on Sun Classes in *ClassPath classes
> ------------------------------------------------------
>
>                 Key: OPENEJB-433
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-433
>             Project: OpenEJB
>          Issue Type: Task
>    Affects Versions: 2.2, 3.0
>            Reporter: Alan Cabrera
>
> Remove dependency on Sun Classes.
> BasicURLClassPath, SystemClassPath and TomcatClassPath directly reference sun.misc.URLClassPath.  This reference is obtained using reflection and set accessible, so with a bit more reflection we should be able to remove the reference.

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

        

[jira] Assigned: (OPENEJB-433) Remove dependency on Sun Classes in *ClassPath classes

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

David Blevins reassigned OPENEJB-433:
-------------------------------------

    Assignee: karan singh malhi

> Remove dependency on Sun Classes in *ClassPath classes
> ------------------------------------------------------
>
>                 Key: OPENEJB-433
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-433
>             Project: OpenEJB
>          Issue Type: Task
>    Affects Versions: 2.2, 3.0
>            Reporter: Alan Cabrera
>         Assigned To: karan singh malhi
>
> Remove dependency on Sun Classes.
> BasicURLClassPath, SystemClassPath and TomcatClassPath directly reference sun.misc.URLClassPath.  This reference is obtained using reflection and set accessible, so with a bit more reflection we should be able to remove the reference.

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

        

[jira] Updated: (OPENEJB-433) Remove dependency on Sun Classes

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

Alan Cabrera updated OPENEJB-433:
---------------------------------

    Description: 
Remove dependency on Sun Classes.

JarUtils uses suntools.jar.Main to add an entry to an existing jar.  This could be replaced by creating a new temp jar with JarOutputStream copying all the data from the existing jar and adding the one new entry.  Then you swap the two files.

BasicURLClassPath, SystemClassPath and TomcatClassPath directly reference sun.misc.URLClassPath.  This reference is obtained using reflection and set accessible, so with a bit more reflection we should be able to remove the reference.


  was:Remove dependency on Sun Classes


> Remove dependency on Sun Classes
> --------------------------------
>
>                 Key: OPENEJB-433
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-433
>             Project: OpenEJB
>          Issue Type: Task
>    Affects Versions: 2.2, 3.0
>            Reporter: Alan Cabrera
>
> Remove dependency on Sun Classes.
> JarUtils uses suntools.jar.Main to add an entry to an existing jar.  This could be replaced by creating a new temp jar with JarOutputStream copying all the data from the existing jar and adding the one new entry.  Then you swap the two files.
> BasicURLClassPath, SystemClassPath and TomcatClassPath directly reference sun.misc.URLClassPath.  This reference is obtained using reflection and set accessible, so with a bit more reflection we should be able to remove the reference.

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

        

[jira] Updated: (OPENEJB-433) Remove dependency on Sun Classes in *ClassPath classes

Posted by "karan singh malhi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

karan singh malhi updated OPENEJB-433:
--------------------------------------

    Attachment: ClassPath.patch

> Remove dependency on Sun Classes in *ClassPath classes
> ------------------------------------------------------
>
>                 Key: OPENEJB-433
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-433
>             Project: OpenEJB
>          Issue Type: Task
>    Affects Versions: 2.2, 3.0
>            Reporter: Alan Cabrera
>         Assigned To: karan singh malhi
>         Attachments: ClassPath.patch
>
>
> Remove dependency on Sun Classes.
> BasicURLClassPath, SystemClassPath and TomcatClassPath directly reference sun.misc.URLClassPath.  This reference is obtained using reflection and set accessible, so with a bit more reflection we should be able to remove the reference.

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

        

[jira] Commented: (OPENEJB-433) Remove dependency on Sun Classes in *ClassPath classes

Posted by "karan singh malhi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463158 ] 

karan singh malhi commented on OPENEJB-433:
-------------------------------------------

Added patch. However, the BasicURLClasspath still uses the private "ucp" field of the URLClassLoader class. Since this is a private field, i think this implementation will only work on Sun JVM and might fail on other JVM's.

> Remove dependency on Sun Classes in *ClassPath classes
> ------------------------------------------------------
>
>                 Key: OPENEJB-433
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-433
>             Project: OpenEJB
>          Issue Type: Task
>    Affects Versions: 2.2, 3.0
>            Reporter: Alan Cabrera
>         Assigned To: karan singh malhi
>         Attachments: ClassPath.patch
>
>
> Remove dependency on Sun Classes.
> BasicURLClassPath, SystemClassPath and TomcatClassPath directly reference sun.misc.URLClassPath.  This reference is obtained using reflection and set accessible, so with a bit more reflection we should be able to remove the reference.

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