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: Per Bothner
Subject: [Bug-kawa] [bug #42713] MalformedParameterizedTypeException thrown when compiling
Date: Thu, 10 Jul 2014 15:45:46 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

Update of bug #42713 (project kawa):

             Open/Closed:                  Closed => Open                   

    _______________________________________________________

Follow-up Comment #4:

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

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 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. 

But now the exception is only thrown if you actually access the field. In
which case an exception might not be out of place. Still, I agree a friendlier
error message would help.

However, there is a reasonable hope that Kawa will do a permission check
before it calls getType, in which case the current code is ok.

I'll think about it, but it would help if you could force an "unfriendly"
exception message (rather than a "friendly" permission-failed 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]