#!/bin/sh mkdir test_pack cat > test_pack/DisplayRenderer.java <<EOF package test_pack; import test_pack.StyledText.*; class DisplayRenderer { StyledText text; DisplayRenderer (StyledText parent) { text = parent; } protected void test () { LineCache lineCache; } } EOF cat > test_pack/StyledText.java <<EOF package test_pack; public class StyledText { LineCache lineCache; public StyledText (int a) { } public LineCache getCache () { return lineCache; } interface LineCache { public void calculate (int startLine, int lineCount); } } EOF gcj -C test_pack/*.java gives test_pack/DisplayRenderer.java:12: error: Type 'LineCache' not found in the declaration of the local variable 'lineCache'. LineCache lineCache; ^ 1 error Verified on HEAD. For more details, see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=172853
Oops. *** This bug has been marked as a duplicate of 8544 ***