[fedora-java] New build failure
Orion Poplawski
orion at cora.nwra.com
Thu Feb 19 23:35:47 UTC 2009
Deepak Bhole wrote:
>
> Took a bit of digging, but found the problem. The issue is that wrong
> classes are being seen by the compiler.
>
> junit.framework.TestSuite implements the interface junit.framework.Test.
> This worked before with the code below because the only "Test" seen by
> the compiler before was from junit.framework.*.
>
> However, F10 now has rhino 1.7, which has a "Test" class as well (with
> no package hierarchy). Rhino ends up in the classpath during compile,
> and the compiler chooses it's Test class, which is not the interface
> implemented by junit.framework.TestSuite. This is why it is best
> practice to import full paths rather than .* . The correct fix here is to
> patch DrmaaSuite.java to remove the junit.framework.* import and add:
>
> import junit.framework.TestSuite;
> import junit.framework.TestCase;
> import junit.framework.Test;
Excellent! Thank you! Bug filed upstream....
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion at cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
More information about the java-devel
mailing list