ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 40776] a problem compiling a Java 5 project with generics
Date Sun, 27 Jul 2008 18:33:50 GMT

--- Comment #8 from CM <>  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

 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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message