gcj/124: protected constructor for InvocationTargetException still visible

Tom Tromey tromey@cygnus.com
Wed Jan 5 09:16:00 GMT 2000


>Number:         124
>Category:       gcj
>Synopsis:       protected constructor for InvocationTargetException still visible
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 05 09:16:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Tom Tromey
>Release:        current cvs
>Organization:
>Environment:

>Description:
I'm using the latest cvs gcj and libgcj.
This program should not compile, but it does:

creche. cat ite.java 
import java.lang.reflect.*;

public class ite
{
  public static void main (String[] args)
  {
    System.out.println (new InvocationTargetException ());
  }
}
creche. gcj -fsyntax-only ite.java 

I think it should not compile because the no-arg
constructor for InvocationTargetException is protected.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Java-prs mailing list