public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/26617]  New: A class from an unnamed package is visible to classes in named packages
@ 2006-03-09 10:14 rmathew at gcc dot gnu dot org
  2006-03-15 16:51 ` [Bug java/26617] " pinskia at gcc dot gnu dot org
  2007-01-09 20:53 ` tromey at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2006-03-09 10:14 UTC (permalink / raw)
  To: java-prs

GCJ allows classes in named packages to see classes in unnamed packages.

For example:

---- ./Snafu.java ----
public class Snafu { }
----------------------

---- ./foo/Bar.java ----
package foo;
// import Snafu;
public class Bar
{
  Snafu junk;
}
------------------------

Note that GCJ accepts the code in "foo/Bar.java" with
or without the line commenting out the import declaration.

Both Jikes 1.22 and Sun's JDK 1.5.0_05 reject this
code.


-- 
           Summary: A class from an unnamed package is visible to classes in
                    named packages
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rmathew at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26617


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-09 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-09 10:14 [Bug java/26617] New: A class from an unnamed package is visible to classes in named packages rmathew at gcc dot gnu dot org
2006-03-15 16:51 ` [Bug java/26617] " pinskia at gcc dot gnu dot org
2007-01-09 20:53 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).