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 15:11:44 +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 #3, bug #42713 (project kawa):

> The Exception was not about a kawa-generated field, but one in the Eclipse
classes.

I know, I though it was clear in my first email, sorry.

> I actually checked in two fixes, either of which should work, but both make
sense for performance reasons

I don't think it's enough. It will work with this particular test case, but if
another similar classes is encountered, but this time has a protected or
public field, it will still fail.

The `rfield.getGenericType()` now in `gnu/bytecode/Field.java` will still
throw an exception in such potential case.

It sure it ain't Kawa faults if the class is malformed, but Kawa should deal
with it the best it can.

The call to `getGenericType` should be wrap in a try/catch to traps
`MalformedParameterizedTypeException` and act accordingly when it happens.
When such exception is raised, Kawa could assume the field is not generic,
assume the field's generic type is Object or stop compilation with a more
"user-friendly" message.




    _______________________________________________________

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]