6723444: javac fails to substitute type variables into a constructor's throws clause

Mark Mahieu mark at twistedbanana.demon.co.uk
Thu Jul 24 06:07:11 PDT 2008


On 23 Jul 2008, at 16:11, Maurizio Cimadamore wrote:
>> If I understood you correctly I think you'd get a 'cannot find  
>> symbol' error on the second constructor invocation.  Or have I  
>> misunderstood?
> This is one of the problem I had, but it can be easily solved by  
> cloning the symbol and setting the type on the cloned symbol  
> instead. My actual implementation compile your example. Only... I  
> don't like it!!
>
> Maurizio


I've attached a diff containing my approach, in case it's of any use  
to you.  I looked at a couple of alternatives, but this one seemed  
the least intrusive at the time.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6723444.diff
Type: application/octet-stream
Size: 7890 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20080724/dfe3aea8/6723444.diff 
-------------- next part --------------


Mark



More information about the compiler-dev mailing list