This is the mail archive of the java-prs@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcj/119: gcjh needs to output space before leading "::" with JArray's



>Number:         119
>Category:       gcj
>Synopsis:       gcjh needs to output space before leading "::" with JArray's
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 13 03:50:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Paul Reilly
>Release:        gcjh (2.96 19991130 (experimental))
>Organization:
>Environment:

>Description:
gcjh adds a leading "::" to the template class type
when outputing JArray's so that the right namespace will
be used.  The problem with something like 
JArray(::java::lang::String *) is that "<:" is an 
"alternative token representation" for '[' according to
"g++ -dy".  Martin v. Loewis suggested putting a space before
the "::".  I tried this and it works.
>How-To-Repeat:

>Fix:
I think the only change that is needed to gcjh is to 
make line 764 of gjavah.c look like this:

      fputs (" ::", stream);
>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]