harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Beliaev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3103) [drlvm][build][kernel] kernel classes are always built w/o debug information
Date Wed, 31 Jan 2007 15:33:05 GMT
[drlvm][build][kernel] kernel classes are always built w/o debug information

                 Key: HARMONY-3103
                 URL: https://issues.apache.org/jira/browse/HARMONY-3103
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Any
            Reporter: Vladimir Beliaev
            Priority: Minor

By default, DRLVM is built in debug mode, still DRLVM kernel classes are built w/o debug information
- this should be fixed.

In particular, if stack trace contains the kernel classes, then no line information is provided
their. For example, stack strace from HARMONY-1930 has this issue (Class, Constrcutor and
ReflectExporter are kernel classes):

java.lang.IllegalAccessException: A member of the "class cl2221" with "" modifiers can not
be accessed from the "class java.lang.Class"
        at java.lang.reflect.ReflectExporter.checkMemberAccess(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at testClassNewInstance.test(testClassNewInstance.java:15)
        at testClassNewInstance.run(testClassNewInstance.java:35)

The file <trunk>/working_vm/build/make/targets/build.java.xml contains the line 

        <javac destdir="${java.build.dir}" source="${javac.source}"
                target="${javac.target}" debug="${java.debug.option}">

which are supposed to build kernel classes in the mode defined in ${java.debug.option}. Still
this variable is not set properly.

Foe now if one needs to build kernel classes in debug mode, then one needs to set true to"'debug"
in mentioned lines like:

        <javac destdir="${java.build.dir}" source="${javac.source}"
                target="${javac.target}" debug="true">

Vladimir Beliaev

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

View raw message