public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/18175] New: Can't find default package with redundant package import
@ 2004-10-27 12:06 phil at mkdoc dot com
2004-10-27 13:05 ` [Bug java/18175] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 11+ messages in thread
From: phil at mkdoc dot com @ 2004-10-27 12:06 UTC (permalink / raw)
To: gcc-bugs
The following class will not compile with GCJ version 3.3.3 (cygwin special),
succeeds with Sun javac. The workaround is obvious, but not always easy with
other people's code.
$ gcj -classpath . -C Test.java
Test.java:3: error: Can't find default package `com.example'. Check the CLASSPAT
H environment variable and the access to the archives
1 error
-- Test.java
package com.example;
import com.example.*;
class Test {
}
-- End Test.java
--
Summary: Can't find default package with redundant package import
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: phil at mkdoc dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug java/18175] Can't find default package with redundant package import
2004-10-27 12:06 [Bug java/18175] New: Can't find default package with redundant package import phil at mkdoc dot com
@ 2004-10-27 13:05 ` pinskia at gcc dot gnu dot org
2004-10-27 13:30 ` rmathew at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-27 13:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-27 13:05 -------
Confirmed. Almost certain that is related to (or even the same bug as) PR 6818.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |6818
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2004-10-27 13:05:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug java/18175] Can't find default package with redundant package import
2004-10-27 12:06 [Bug java/18175] New: Can't find default package with redundant package import phil at mkdoc dot com
2004-10-27 13:05 ` [Bug java/18175] " pinskia at gcc dot gnu dot org
@ 2004-10-27 13:30 ` rmathew at gcc dot gnu dot org
2004-10-27 13:37 ` rmathew at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2004-10-27 13:30 UTC (permalink / raw)
To: gcc-bugs
--
Bug 18175 depends on bug 6818, which changed state.
Bug 6818 Summary: "Can't find default package" when package has no classes
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6818
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug java/18175] Can't find default package with redundant package import
2004-10-27 12:06 [Bug java/18175] New: Can't find default package with redundant package import phil at mkdoc dot com
2004-10-27 13:05 ` [Bug java/18175] " pinskia at gcc dot gnu dot org
2004-10-27 13:30 ` rmathew at gcc dot gnu dot org
@ 2004-10-27 13:37 ` rmathew at gcc dot gnu dot org
2004-10-27 13:41 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2004-10-27 13:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rmathew at gcc dot gnu dot org 2004-10-27 13:37 -------
Andrew, did you try it with the current mainline? I don't see this bug any more
at all. IMHO, this should be closed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug java/18175] Can't find default package with redundant package import
2004-10-27 12:06 [Bug java/18175] New: Can't find default package with redundant package import phil at mkdoc dot com
` (2 preceding siblings ...)
2004-10-27 13:37 ` rmathew at gcc dot gnu dot org
@ 2004-10-27 13:41 ` pinskia at gcc dot gnu dot org
2004-10-27 14:08 ` rmathew at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-27 13:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-27 13:41 -------
I used "gcc version 4.0.0 20041026 (experimental)"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug java/18175] Can't find default package with redundant package import
2004-10-27 12:06 [Bug java/18175] New: Can't find default package with redundant package import phil at mkdoc dot com
` (3 preceding siblings ...)
2004-10-27 13:41 ` pinskia at gcc dot gnu dot org
@ 2004-10-27 14:08 ` rmathew at gcc dot gnu dot org
2004-10-27 14:13 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2004-10-27 14:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rmathew at gcc dot gnu dot org 2004-10-27 14:08 -------
Weird! I don't see this error at all (i686-pc-linux-gnu) with
the current mainline:
-------------------------- 8< --------------------------
~/src/tmp/r1 > cat com/example/Test.java
package com.example;
import com.example.*;
class Test { }
~/src/tmp/r1 > $MYGCJ -classpath . -C com/example/Test.java
~/src/tmp/r1 > $MYGCJ --version
gcj (GCC) 4.0.0 20041027 (experimental)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-------------------------- 8< --------------------------
MYGCJ is a variable defined in such a way that I can use
the GCJ built from CVS without having to actually install
it:
~/src/tmp/r1 > echo $MYGCJ
/home/ranmath/src/gcc/build/gcc/gcj -B/home/ranmath/src/gcc/build/gcc/ -B/home/r
anmath/src/gcc/build/i686-pc-linux-gnu/libjava/ -I/home/ranmath/src/gcc/build/i6
86-pc-linux-gnu/libjava/libgcj-4.0.0.jar -L/home/ranmath/src/gcc/build/i686-pc-l
inux-gnu/libjava/.libs
But I don't think that should affect the outcome.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug java/18175] Can't find default package with redundant package import
2004-10-27 12:06 [Bug java/18175] New: Can't find default package with redundant package import phil at mkdoc dot com
` (4 preceding siblings ...)
2004-10-27 14:08 ` rmathew at gcc dot gnu dot org
@ 2004-10-27 14:13 ` pinskia at gcc dot gnu dot org
2004-10-27 14:15 ` rmathew at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-27 14:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-27 14:13 -------
Note you compiling with the full path to the package/java source where the problem comes into play.
If you compile with just gcj -c Test.java, it fails.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug java/18175] Can't find default package with redundant package import
2004-10-27 12:06 [Bug java/18175] New: Can't find default package with redundant package import phil at mkdoc dot com
` (5 preceding siblings ...)
2004-10-27 14:13 ` pinskia at gcc dot gnu dot org
@ 2004-10-27 14:15 ` rmathew at gcc dot gnu dot org
2005-08-22 16:22 ` cvs-commit at gcc dot gnu dot org
2005-08-22 16:26 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2004-10-27 14:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rmathew at gcc dot gnu dot org 2004-10-27 14:15 -------
Oh! I see.
In that case, I do not see the error with JDK 1.4.2_03
(Linux), but I do see it with GCJ (mainline, Linux). So
yeah, it is sort of a bug.
But note that it is still not quite the same as PR6818.
The workaround is to compile from the folder containing
"com/example" as is the norm in Java programming.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug java/18175] Can't find default package with redundant package import
2004-10-27 12:06 [Bug java/18175] New: Can't find default package with redundant package import phil at mkdoc dot com
` (6 preceding siblings ...)
2004-10-27 14:15 ` rmathew at gcc dot gnu dot org
@ 2005-08-22 16:22 ` cvs-commit at gcc dot gnu dot org
2005-08-22 16:26 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-22 16:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-22 16:21 -------
Subject: Bug 18175
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2005-08-22 16:21:19
Modified files:
gcc : ChangeLog c-common.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: switch-warn-3.c
Log message:
2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
PR c/18715
* c-common.c (c_do_switch_warnings): Look for a node where the enum's
value is inbetween the range if we did not find an exact match.
2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
PR c/18175
* gcc.dg/switch-warn-3.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9798&r2=2.9799
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&r1=1.649&r2=1.650
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5947&r2=1.5948
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/switch-warn-3.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug java/18175] Can't find default package with redundant package import
2004-10-27 12:06 [Bug java/18175] New: Can't find default package with redundant package import phil at mkdoc dot com
` (7 preceding siblings ...)
2005-08-22 16:22 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-22 16:26 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-22 16:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-22 16:23 -------
Ignore that commit, I got 7 and 1 switched around.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug java/18175] Can't find default package with redundant package import
[not found] <bug-18175-9532@http.gcc.gnu.org/bugzilla/>
@ 2007-01-09 20:50 ` tromey at gcc dot gnu dot org
0 siblings, 0 replies; 11+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from tromey at gcc dot gnu dot org 2007-01-09 20:46 -------
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18175
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-01-09 20:50 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-27 12:06 [Bug java/18175] New: Can't find default package with redundant package import phil at mkdoc dot com
2004-10-27 13:05 ` [Bug java/18175] " pinskia at gcc dot gnu dot org
2004-10-27 13:30 ` rmathew at gcc dot gnu dot org
2004-10-27 13:37 ` rmathew at gcc dot gnu dot org
2004-10-27 13:41 ` pinskia at gcc dot gnu dot org
2004-10-27 14:08 ` rmathew at gcc dot gnu dot org
2004-10-27 14:13 ` pinskia at gcc dot gnu dot org
2004-10-27 14:15 ` rmathew at gcc dot gnu dot org
2005-08-22 16:22 ` cvs-commit at gcc dot gnu dot org
2005-08-22 16:26 ` pinskia at gcc dot gnu dot org
[not found] <bug-18175-9532@http.gcc.gnu.org/bugzilla/>
2007-01-09 20:50 ` 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).