You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2006/07/10 12:38:29 UTC

[jira] Created: (HARMONY-813) [drlvm] j.l.Package fails to find version info for bootstrap packages

[drlvm] j.l.Package fails to find version info for bootstrap packages
---------------------------------------------------------------------

         Key: HARMONY-813
         URL: http://issues.apache.org/jira/browse/HARMONY-813
     Project: Harmony
        Type: Bug

  Components: VM  
    Reporter: Alexey Varlamov
    Priority: Trivial


j.l.Package never provides version info about the implementation and specification of bootstrap packages, even if requested info is presented in manifest.

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


[jira] Commented: (HARMONY-813) [drlvm] j.l.Package fails to find version info for bootstrap packages

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-813?page=comments#action_12427172 ] 
            
Alexey Varlamov commented on HARMONY-813:
-----------------------------------------

Funny, the IBM VME (v4) fails one of the tests:
junit.framework.ComparisonFailure: expected:<spec title2> but was:<common spec title> at org.apache.harmony.luni.tests.java.lang.PackageTest.test_BSPackageInfoSpecific(PackageTest.java:443) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)

It seems to ignore specific package information, just read main attributes.

> [drlvm] j.l.Package fails to find version info for bootstrap packages
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-813
>                 URL: http://issues.apache.org/jira/browse/HARMONY-813
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>         Assigned To: Geir Magnusson Jr
>            Priority: Trivial
>         Attachments: bs-version-test.jar, pkg-info.patch, pkg-test.patch
>
>
> j.l.Package never provides version info about the implementation and specification of bootstrap packages, even if requested info is presented in manifest.

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

        

[jira] Commented: (HARMONY-813) [drlvm] j.l.Package fails to find version info for bootstrap packages

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-813?page=comments#action_12426407 ] 
            
Alexey Varlamov commented on HARMONY-813:
-----------------------------------------

It worked - the only difference that I tried it with kernel.jar. This issue relates to bootstrap loader/packages only, URLClassLoader worked fine.
The point is that "java.lang" package is spread over several jars so we could read this info from any of them (or even refuse to accept classes if manifest info for the package do not match).
The DRLVM only takes the first related jar, and I guess J9 does the same.

OK, I will look if I can add independent test for this issue.

> [drlvm] j.l.Package fails to find version info for bootstrap packages
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-813
>                 URL: http://issues.apache.org/jira/browse/HARMONY-813
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>         Assigned To: Geir Magnusson Jr
>            Priority: Trivial
>         Attachments: pkg-info.patch
>
>
> j.l.Package never provides version info about the implementation and specification of bootstrap packages, even if requested info is presented in manifest.

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

        

[jira] Commented: (HARMONY-813) [drlvm] j.l.Package fails to find version info for bootstrap packages

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-813?page=comments#action_12439989 ] 
            
Geir Magnusson Jr commented on HARMONY-813:
-------------------------------------------

I'm turning this into a classlib patch, as DRLVM doesn't need to be changed, but it's now just additional tests for classlib.

> [drlvm] j.l.Package fails to find version info for bootstrap packages
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-813
>                 URL: http://issues.apache.org/jira/browse/HARMONY-813
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>         Assigned To: Geir Magnusson Jr
>            Priority: Trivial
>         Attachments: bs-version-test.jar, pkg-info.patch, pkg-test.patch
>
>
> j.l.Package never provides version info about the implementation and specification of bootstrap packages, even if requested info is presented in manifest.

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

        

[jira] Commented: (HARMONY-813) [drlvm] j.l.Package fails to find version info for bootstrap packages

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-813?page=comments#action_12426204 ] 
            
Geir Magnusson Jr commented on HARMONY-813:
-------------------------------------------

Are you sure this patch works?

I added 

Specification-Title: Java Platform API Specification

to the luni manifest, and it still does't seem to work.

I've also tested w/ the j9 vm, and it doesn't work there either, so I'm guessing we have a classlib bug


> [drlvm] j.l.Package fails to find version info for bootstrap packages
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-813
>                 URL: http://issues.apache.org/jira/browse/HARMONY-813
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>         Assigned To: Geir Magnusson Jr
>            Priority: Trivial
>         Attachments: pkg-info.patch
>
>
> j.l.Package never provides version info about the implementation and specification of bootstrap packages, even if requested info is presented in manifest.

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

        

[jira] Updated: (HARMONY-813) [drlvm] j.l.Package fails to find version info for bootstrap packages

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-813?page=all ]

Alexey Varlamov updated HARMONY-813:
------------------------------------

    Attachment: pkg-info.patch

The fix is attached

> [drlvm] j.l.Package fails to find version info for bootstrap packages
> ---------------------------------------------------------------------
>
>          Key: HARMONY-813
>          URL: http://issues.apache.org/jira/browse/HARMONY-813
>      Project: Harmony
>         Type: Bug

>   Components: VM
>     Reporter: Alexey Varlamov
>     Priority: Trivial
>  Attachments: pkg-info.patch
>
> j.l.Package never provides version info about the implementation and specification of bootstrap packages, even if requested info is presented in manifest.

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


[jira] Updated: (HARMONY-813) [drlvm] j.l.Package fails to find version info for bootstrap packages

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-813?page=all ]

Alexey Varlamov updated HARMONY-813:
------------------------------------

    Attachment: pkg-test.patch
                bs-version-test.jar

There was PackageTest in impl tests group, so I've added 2 testcases to it.
Attached is the patch and a resource jar which is intended be placed to modules\luni\src\test\resources.

> [drlvm] j.l.Package fails to find version info for bootstrap packages
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-813
>                 URL: http://issues.apache.org/jira/browse/HARMONY-813
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>         Assigned To: Geir Magnusson Jr
>            Priority: Trivial
>         Attachments: bs-version-test.jar, pkg-info.patch, pkg-test.patch
>
>
> j.l.Package never provides version info about the implementation and specification of bootstrap packages, even if requested info is presented in manifest.

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

        

[jira] Updated: (HARMONY-813) [drlvm] j.l.Package fails to find version info for bootstrap packages

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-813?page=all ]

Geir Magnusson Jr updated HARMONY-813:
--------------------------------------

    Component/s: Classlib
                     (was: DRLVM)

> [drlvm] j.l.Package fails to find version info for bootstrap packages
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-813
>                 URL: http://issues.apache.org/jira/browse/HARMONY-813
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey Varlamov
>         Assigned To: Geir Magnusson Jr
>            Priority: Trivial
>         Attachments: bs-version-test.jar, pkg-info.patch, pkg-test.patch
>
>
> j.l.Package never provides version info about the implementation and specification of bootstrap packages, even if requested info is presented in manifest.

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

        

[jira] Updated: (HARMONY-813) [drlvm] j.l.Package fails to find version info for bootstrap packages

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-813?page=all ]

Geir Magnusson Jr updated HARMONY-813:
--------------------------------------

    Component/s: DRLVM
                     (was: VM)

> [drlvm] j.l.Package fails to find version info for bootstrap packages
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-813
>                 URL: http://issues.apache.org/jira/browse/HARMONY-813
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>            Priority: Trivial
>         Attachments: pkg-info.patch
>
>
> j.l.Package never provides version info about the implementation and specification of bootstrap packages, even if requested info is presented in manifest.

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

        

[jira] Assigned: (HARMONY-813) [drlvm] j.l.Package fails to find version info for bootstrap packages

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-813?page=all ]

Geir Magnusson Jr reassigned HARMONY-813:
-----------------------------------------

    Assignee: Geir Magnusson Jr

> [drlvm] j.l.Package fails to find version info for bootstrap packages
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-813
>                 URL: http://issues.apache.org/jira/browse/HARMONY-813
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>         Assigned To: Geir Magnusson Jr
>            Priority: Trivial
>         Attachments: pkg-info.patch
>
>
> j.l.Package never provides version info about the implementation and specification of bootstrap packages, even if requested info is presented in manifest.

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