You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Aleksey Ignatenko (JIRA)" <ji...@apache.org> on 2007/05/14 13:37:17 UTC
[jira] Commented: (HARMONY-3848) [drlvm][kernel] Accessibility
issues when loading class with user defined classloader
[ https://issues.apache.org/jira/browse/HARMONY-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495560 ]
Aleksey Ignatenko commented on HARMONY-3848:
--------------------------------------------
The right behaviour of this test is to fail with IllegalAccessException like it happens on RI.
The test passes on OPT/JET?INT modes on drlvm.
> [drlvm][kernel] Accessibility issues when loading class with user defined classloader
> -------------------------------------------------------------------------------------
>
> Key: HARMONY-3848
> URL: https://issues.apache.org/jira/browse/HARMONY-3848
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Aleksey Ignatenko
> Attachments: StackFramesRestoreTest.java
>
>
> Developing StackFramesRestoreTest reliability test I faced with the following issue:
> Drlvm does not check class accessibility for class (with default access modifiers) being loaded by user defined classloader .
> Attached StackFramesRestoreTest.java shows that Harmony passes the test OK, but RI fails with exception:
> java.lang.IllegalAccessException: Class StackFramesRestoreTest can not access a member of class TestClass with modifiers ""
> at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
> at java.lang.Class.newInstance0(Class.java:344)
> at java.lang.Class.newInstance(Class.java:303)
> at StackFramesRestoreTest.test(StackFramesRestoreTest.java:29)
> at StackFramesRestoreTest.main(StackFramesRestoreTest.java:12)
> To fix the exception on RI the class TestClass and it's constructor are to be public.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.