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-5257) [drlvm][class_support] wrong IllegalAccessError for array of protected inner classes
Date Wed, 05 Dec 2007 11:01:43 GMT

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

Pavel Pervov commented on HARMONY-5257:

The citation from the Spec:
"5.4.4 Access Control
A class or interface C is accessible to a class or interface D if and only if either of the
following conditions are true:
- C is public (which is not true in our case);
- C and D are members of the same runtime package (which is not the case either)"

It is absolutely correct to throw IllegalAccessError in this case.

It looks like an attemt to perform operation which normally would not be performed?

Is source code available for these classes? Can the issue be reduced to a small reproducer?

> [drlvm][class_support] wrong IllegalAccessError for array of protected inner classes
> ------------------------------------------------------------------------------------
>                 Key: HARMONY-5257
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5257
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>            Assignee: Alexey Varlamov
>         Attachments: H5257fix.diff, H5257test.diff
> The ArgoUML start fails with IllegalAccessError: 
> java.lang.IllegalAccessError: from org/netbeans/mdr/handlers/gen/PackageGenerator to
>         at org.netbeans.mdr.handlers.gen.PackageGenerator.generateMethods(PackageGenerator.java:132)
>         at org.netbeans.lib.jmi.util.ClassFileGenerator.generateClassFile(ClassFileGenerator.java:162)
>         at org.netbeans.mdr.handlers.gen.HandlerGenerator.generateHandler(HandlerGenerator.java:90)
>         at org.netbeans.mdr.handlers.BaseObjectHandler.getHandlerClass(BaseObjectHandler.java:108)
>         at org.netbeans.mdr.NBMDRepositoryImpl.getHandler(NBMDRepositoryImpl.java:631)
>         at org.netbeans.mdr.NBMDRepositoryImpl.getHandler(NBMDRepositoryImpl.java:613)
>         at org.netbeans.mdr.NBMDRepositoryImpl.getExtent(NBMDRepositoryImpl.java:314)
>         at org.netbeans.mdr.NBMDRepositoryImpl.installFakeMof(NBMDRepositoryImpl.java:1332)
>         at org.netbeans.mdr.NBMDRepositoryImpl.boot(NBMDRepositoryImpl.java:1315)
>         at org.netbeans.mdr.NBMDRepositoryImpl.initCheck(NBMDRepositoryImpl.java:749)
>         at org.netbeans.mdr.NBMDRepositoryImpl.getExtent(NBMDRepositoryImpl.java:298)
>         at org.argouml.model.mdr.MDRModelImplementation.<init>(MDRModelImplementation.java:254)
>         at java.lang.reflect.VMReflection.newClassInstance(VMReflection.java)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:283)
>         at java.lang.Class.newInstance(Class.java:700)
>         at org.argouml.model.Model.<clinit>(Model.java:124)
>         at org.argouml.application.Main.main(Main.java:250)

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

View raw message