harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5181) [ibm vme] Annotated class can't be loaded
Date Tue, 04 Dec 2007 11:27:43 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Varlamov updated HARMONY-5181:
-------------------------------------

    Priority: Major  (was: Critical)

IMO this bug is not really critical for the project, downgrading priority to "Major".

> [ibm vme] Annotated class can't be loaded
> -----------------------------------------
>
>                 Key: HARMONY-5181
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5181
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>            Reporter: Vasily Zakharov
>
> Consider the following simple test:
> import java.lang.annotation.*;
> public class Test {
>     public static void main(String[] args) {
>         try {
>             Foo.class.getDeclaredAnnotations();
>             System.out.println("SUCCESS");
>         } catch (Exception e) {
>             e.printStackTrace(System.out);
>         }
>     }
> }
> @Retention(RetentionPolicy.RUNTIME)
> @interface Ann {}
> @Ann class Foo {}
> Output on RI:
> SUCCESS
> Output on DRLVM:
> SUCCESS
> Output on IBM VME:
> Exception in thread "main" java.lang.ClassFormatError: (/$Proxy0) class name is invalid
at offset=0
>         at java.lang.reflect.Proxy.defineClassImpl(Native Method)
>         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:157)
>         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:21)
>         at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:34)
>         at com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
>         at java.lang.Class.getDeclaredAnnotations(Class.java:1458)
>         at Test.main(Test.java:6)

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


Mime
View raw message