This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/24792] New: Inner interface's are not know inside package's


#!/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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]