public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/8043: gcj rejects call to legal method (getTimeInMillis) in Calendar class
@ 2002-09-25 12:06 chris.niziol
  0 siblings, 0 replies; 2+ messages in thread
From: chris.niziol @ 2002-09-25 12:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8043
>Category:       java
>Synopsis:       gcj rejects call to legal method (getTimeInMillis) in Calendar class
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 25 12:06:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Chris Niziol
>Release:        gcc version 3.2
>Organization:
>Environment:
System: SunOS hdsdev01 5.6 Generic_105181-32 sun4u sparc SUNW,Ultra-250
Architecture: sun4
>Description:
$ gcj Test.java
Test.java: In class `Test':
Test.java: In method `Test.main(java.lang.String[])':
Test.java:10: Can't access protected method `java.util.Calendar.getTimeInMillis'
 from `Test'.
         System.out.println("Time In Millis:" + myCal.getTimeInMillis());
                                                     ^
>How-To-Repeat:
Compile and run this with java sdk 1.4.x:

class Test
{
   public static void main(String args[])
   {
      Calendar myCal = Calendar.getInstance();
      System.out.println("Time In Millis:" + myCal.getTimeInMillis());
   }
}
>Fix:
Access level for method should be changed to public
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: java/8043: gcj rejects call to legal method (getTimeInMillis) in Calendar class
@ 2002-09-25 12:48 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2002-09-25 12:48 UTC (permalink / raw)
  To: chris.niziol, gcc-bugs, gcc-prs, java-prs, nobody, tromey

Synopsis: gcj rejects call to legal method (getTimeInMillis) in Calendar class

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Wed Sep 25 12:48:37 2002
Responsible-Changed-Why:
    I'm handling this.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Wed Sep 25 12:48:37 2002
State-Changed-Why:
    This was fixed on the trunk a little while ago.
    This method was only made public in 1.4; it took us
    a while to notice :-).
    Thanks for your report.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8043


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

end of thread, other threads:[~2002-09-25 19:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-25 12:06 java/8043: gcj rejects call to legal method (getTimeInMillis) in Calendar class chris.niziol
2002-09-25 12:48 tromey

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).