This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/24792] New: Inner interface's are not know inside package's
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Nov 2005 12:11:13 -0000
- Subject: [Bug java/24792] New: Inner interface's are not know inside package's
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
#!/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
--
Summary: Inner interface's are not know inside package's
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: aph at redhat dot com
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24792