harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
Date Tue, 22 May 2007 14:09:17 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497869

Gregory Shimansky commented on HARMONY-3565:

I found the problem why ecj.jar cannot find boot classes. It tried to create bootclasspath
based on java.home/lib directory trying to find all JAR file in this directory. On Sun it
works ok because all boot classes are located in java.home/lib directory.

On harmony boot classes are located in java.home/bin/default/kernel.jar and in java.home/lib/boot.
Eclipse ecj doesn't try to look for such JAR files. It also doesn't try to use somewhat undocumented
sun.boot.library.path property which DRLVM defines for compatibility.

The problem is reproducible both on IBM VME and DRLVM because boot classes layout is the same
for both of them.

The code which does bootclasspath handling for ECJ is here: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java?view=markup

Look at the function getLibrariesFiles, it filters the directory for any file which has *.jar
name and collects them into paths array. This function is called from handleBootclasspath
with an array directoriesToCheck which contains java.home/lib directory name.

I think that ECJ uses not quite correct heuristics to find boot classes. It could at least
try to check sun.boot.class.path property in addition to collecting *.jar files in java.home/lib.
Eclipse SDK does such thing when it tries to detect JRE properties. So I think we could ask
Eclipse community to fix ECJ by filing a bug on Eclipse.

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Assigned To: Gregory Shimansky
>         Attachments: screenshot-1.jpg
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class
with message that java.lang.Object is missed.

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

View raw message