harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Pervov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6072) [buildtest][eut][drlvm] Remove duplicate entry for classlib of Harmony
Date Tue, 13 Jan 2009 13:13:18 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663325#action_12663325
] 

Pavel Pervov commented on HARMONY-6072:
---------------------------------------

Look in classloader.cpp: bootstrap_components_classpath and get_kernel_path both return gc_gen.jar
as the path element. The first is from harmonyvm.properties, the second - from helper registry.

Then this path is set as vm.boot.class.path and sun.boot.class.path. It looks like Eclipse
is using one of these.

There is duplication check in SetBCPElement but that is invoked after setting these properties.

The idea of the fix is to reconstruct boot class path string after the call to SetClasspathFromString(vmboot),
and move setting vm.boot.class.path and sun.boot.class.path after that with new reconstructed
value.

Moreover, it looks like DRLVM has the bug that dependent jars referenced from jar manifests
on boot class path are not referenced by vm.boot.class.path and sun.boot.class.path properties,
as these properties are set before jar manifests are extracted.

Should we file separate JIRA on this or fix it along with this issue?

> [buildtest][eut][drlvm] Remove duplicate entry for classlib of Harmony
> ----------------------------------------------------------------------
>
>                 Key: HARMONY-6072
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6072
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>    Affects Versions: 5.0M8
>         Environment: Any
>            Reporter: Chunrong Lai
>             Fix For: 5.0M9
>
>         Attachments: ClasslibDirTest.java
>
>
>  When running attached test case extracted from EUT3.5. Harmony will get duplicate (Jar)
entry of classlib which leads to later error of EUT.

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


Mime
View raw message