This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/23549] New: gij swallows args after -ea
- From: "green at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 24 Aug 2005 19:00:39 -0000
- Subject: [Bug java/23549] New: gij swallows args after -ea
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gij.cc says:
else if (! strcmp (arg, "-enableassertions") || ! strcmp (arg, "-ea"))
{
if (i >= argc - 1)
goto no_arg;
// FIXME: hook up assertion support
++i;
continue;
}
I think the ++i shouldn't be there.
since -ea doesn't take an arg, does it?
Try, for instance, "gij -ea -classpath Bar.jar Foo"
the -ea processing is swallowing the -classpath arg and gij
complains about not being able to load the class Bar.jar.
--
Summary: gij swallows args after -ea
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: green at redhat 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=23549