bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #42713] MalformedParameterizedTypeException thrown when


From: Matthieu Vachon
Subject: [Bug-kawa] [bug #42713] MalformedParameterizedTypeException thrown when compiling
Date: Thu, 10 Jul 2014 16:58:27 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

Follow-up Comment #5, bug #42713 (project kawa):

> As far as I can tell, it's not actually malformed. Rather the issue appears
to be that Kawa can't access teh classes involved. 

I think I might have understand the problem. The following java snippet fails
with MalformedException:


    public static void main(String[] args) {
        Class clazz = ResourcesPlugin.class;
        Field[] fields = clazz.getDeclaredFields();
        Field field = fields[33];

        field.getGenericType();
    }


But this one fails with `error: type ServiceRegistration does not take
parameters`:


public class TestParameterizedType {
    public static class Service {
        private ServiceRegistration<IWorkspace> workspaceRegistration;
    }
}


It appears that `ResourcesPlugin` was compiled with Java5 while
`ServiceRegistration` with Java4. Hence, this might explain why the call to
`getGenericType` fails when trying to access `ServiceRegistration` generic
type.

I'm not sure I understand the reasoning with the permission check. What kind
of permission would Kawa check exactly?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42713>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]