Community
Participate
Working Groups
Test code looks something like this: package com.foo.bar; import static java.lang.String.format; public class MyTestClass extends TestCase { public void testFoo() { format(...); } } Expected result: format would be picked up from String. Actual result: format is picked up from the Assert class, and it's not even public! Results in compile error because of argument mismatch.
This is fixed in 3.1.2 *** This bug has been marked as a duplicate of 117861 ***
I upgraded to 3.2M5a and this bug is in that branch! Just to make sure we're all on the same page, here's the version info about my "Eclipse Java Development Tools" feature: Version: 3.2.0.v20060215-1200-0cq-cuim1y Build id: I20060223-1656
I'm on Windows now, so I'm updating the bug report accordingly. In other words, I didn't run 3.2 on Linux to see if this bug shows up there; I ran it on Windows.
I tried this in 3.1.2 and it doesn't work there either.
Added StaticImport test043
Verified with I20060427-1600 for 3.2RC2