harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Markov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4307) [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
Date Tue, 10 Jul 2007 10:16:04 GMT

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

Mikhail Markov commented on HARMONY-4307:

Although i could not create a reproducer to confirm the issue, after some code investigation
i've found a gap allowing type to be null:
It's package-private constructor of ObjectStreamField - if called then type is null and getType()
not only could return null, but in some circumstances could throw NPE. It's expected that
other classes in java.io package using this constructor will call resolve() method before
actual class using but until that the class is in invalid state. So, it seems that type should
be initialized to some non-null value in this case. I'll provide the patch soon.

> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>                 Key: HARMONY-4307
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4307
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: SLES 10 x86_64, DRLVM release build
>            Reporter: Andrey Pavlenko
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this
issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on
release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651

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

View raw message