🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14746

Re: Try with no catch.

#14746
From: John Hennessy
Date: Thu, 05 Aug 1999 00:00
41 lines
1344 bytes
I'm not sure why it's compiling!  There is no requirement to have anything
in the catch block (e.g., catch {} is fine).  But your syntax implies that
somewhere you have a class named 'Class' and a method within 'X' named
'class' ...

Hugo Ferreira <HugoF@cocaina.inescn.pt> wrote in message
news:7o9m0l$p122@forums.borland.com...
> Hi,
>
> Simple question: Is a try and finally block allowed with no catch block.
> example:
>
> class X
> {
>
> method a()
> {
>     try
>     {
>      do_something()
>     }
>     finally
>     {
>      do_nothing()
>     }
> }
>
> } // class
>
> Something like this compiles, but when the following line of code executes
:
>
> Class clss = X.class
>
> java complained.
>
>
>
>
>
>
Technical Details
Message-ID: <rqjuubjvkur49@corp.supernews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7o9m0l$p122@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,664c3a7a9c471a
X-Google-Attributes: gidf74b3,public
From: "John Hennessy" <John.Hennessy@fan.com>
Subject: Re: Try with no catch.
Date: 1999/08/05
Message-ID: <rqjuubjvkur49@corp.supernews.com>
X-Deja-AN: 509324716
References: <7o9m0l$p122@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: newsabuse@supernews.com
Organization: Posted via Supernews, http://www.supernews.com
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.language