test failures

Werner Dietl wdietl at gmail.com
Fri Jan 18 18:33:48 PST 2013


>> ExceptionParameters.java fails for multicatch. I didn't find a way to
>> connect the information I have at TA resolution to the exception table
>> yet. Please let me know if you have suggestions.
>
> Is this an indication that you're trying to compute type annotation
> positions too early?

I don't think so.
In Code.fillExceptionParameterPositions() I only have the local
variable for the exception. That local variable has all type
annotations attached and the exception table contains type information
to resolve.
However, the attached type annotations don't currently store to which
of the types of the multicatch they were attached to - that's exactly
what we are trying to fill in.

Earlier, in TypeAnnotations.resolveFrame, I have the attributed AST
and go through each type annotation. However, I cannot store the type
of the exception within the type annotation - type annotations only
store indices.

So I have one piece of the puzzle in TypeAnnotations and another in
Code and I'm not sure how to connect the two.
I can imagine adding a initial index to store the offset within the
multicatch and then in Code using that to refine the exception table
index. However, that would assume a certain ordering of the exception
table.

I'm not sure I'm explaining the problem well. Let me know if I should try again.

cu, WMD.

-- 
http://www.google.com/profiles/wdietl


More information about the type-annotations-dev mailing list