re PR java/2791 (Bogus "class `foo' already defined ..." error from jc1)

* jcf-parse.c: (yyparse): Don't prepend "./" to relative
	paths. Fixes PR java/2791.

From-SVN: r52636
This commit is contained in:
Alexandre Petit-Bianco 2002-04-22 13:34:19 -07:00 committed by Mark Wielaard
parent 5066927d9e
commit 920f81e7b8
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-04-22 Alexandre Petit-Bianco <apbianco@redhat.com>
* jcf-parse.c: (yyparse): Don't prepend "./" to relative
paths. Fixes PR java/2791.
2002-04-19 Andrew Haley <aph@redhat.com>
* jcf-write.c (push_long_const): lo, hi: New variables.

View File

@ -1000,9 +1000,6 @@ java_parse_file ()
int len = strlen (list);
if (*list != '/' && filename_count > 0)
obstack_grow (&temporary_obstack, "./", 2);
obstack_grow0 (&temporary_obstack, list, len);
value = obstack_finish (&temporary_obstack);