ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40776] a problem compiling a Java 5 project with generics
Date Sun, 27 Jul 2008 18:33:50 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=40776





--- Comment #8 from CM <claude.montpetit@trilliantinc.com>  2008-07-27 11:33:49 PST
---
I think there is other "edge cases" for that which are solved by this bug fix:

 1- Interface A has a method x with "void" return type.

 2- Class B uses an instance that implements interface A, and calls the void
method x. from -1.

 3- Interface A is refactored and method x to return an Object (not void
anymore).

 4- Class B is not modified and still compiles: it just call x still with no
concern on the returned value.

 5- Using javac in Ant, Class B is untouched and not recompiled.

At runtime, B fails calling the method x.

Forcing recompile of B fixes the runtime problem. Using 1.7.1 with the new
attribute includeDestClasses="false" also fixes the problem.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message