bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug cp-tools/27517] New: GiopRmicCompiler performs wrong check of throw


From: edwin dot steiner at gmx dot net
Subject: [Bug cp-tools/27517] New: GiopRmicCompiler performs wrong check of thrown exceptions declaration
Date: 9 May 2006 10:26:14 -0000

When compiling JOnAS I got error messages from GiopRmicCompiler
complaining that a method does not throw RemoteException.

I checked and saw that the method actually _does_ throw RemoteException,
but also other exceptions.

The way the check is written in the source (see the "break") i suspect
the intended behaviour was to check if _any_ thrown exception class
is assignable to RemoteException. However, the current code checks
if _all_ thrown exception classes are assignable to RemoteException.

I attach a patch that changes the behaviour to the former. With this
patch (and one adding the -classpath argument to grmic) I was able
to compile JOnAS.


-- 
           Summary: GiopRmicCompiler performs wrong check of thrown
                    exceptions declaration
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cp-tools
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: edwin dot steiner at gmx dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27517





reply via email to

[Prev in Thread] Current Thread [Next in Thread]