public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/27280]  New: gcj cannot import inner classes using a wildcard import
@ 2006-04-24 12:30 michele at focuseek dot com
  2006-04-26  2:44 ` [Bug java/27280] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: michele at focuseek dot com @ 2006-04-24 12:30 UTC (permalink / raw)
  To: java-prs

Try the following code:

=== p/A.java ===
package p;

public class A {
        public static interface AI {
                public static final int n = 3;
        }
}
=== p/B.java ===
package p;
import p.A.*;

public class B {
        static int main(String[] args) {
                System.out.println(AI.n);
                return 0;
        }
}
======

Building this with gcj fails with the error:
./p/B.java:3: error: Can't find default package 'p.A'. Check the CLASSPATH
environment variable and the access to the archives

JDK 1.5 javac can compile the example. Also changing the import in B.java to

import p.A.AI;

makes it work with gcj, too.


-- 
           Summary: gcj cannot import inner classes using a wildcard import
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michele at focuseek dot com


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


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

* [Bug java/27280] gcj cannot import inner classes using a wildcard import
  2006-04-24 12:30 [Bug java/27280] New: gcj cannot import inner classes using a wildcard import michele at focuseek dot com
@ 2006-04-26  2:44 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-26  2:44 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-26 02:44 -------


*** This bug has been marked as a duplicate of 10894 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2006-04-26  2:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-24 12:30 [Bug java/27280] New: gcj cannot import inner classes using a wildcard import michele at focuseek dot com
2006-04-26  2:44 ` [Bug java/27280] " pinskia 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).