* Matthew Toseland <toad at amphibian.dyndns.org> [2006-07-03 21:08:39]:

> On Mon, Jul 03, 2006 at 06:01:22PM +0200, Florent Daigni?re (NextGen$) wrote:
> > * Matthew Toseland <toad at amphibian.dyndns.org> [2006-07-03 16:26:44]:
> > 
> > > What was the problem?
> > 
> > That you get a NoClassDefFound ERROR from the linker ... as it's not an
> > exception, it's not catchable imo.
> 
> Everything is catchable. Only stuff derived from Exception (not Error,
> and not RuntimeException) is an error not to catch. catch (Throwable)
> catches *everything*.

I hadn't thought that Exception was inheriting from Throwable :$

ok, I've re-commited it.

NextGen$

> > 
> > The solution is to use the classloader and to try to load it before
> > trying to access it. I just don't know how to do it :) I'll rtfm when I
> > get around it
> > 
> > NextGen$
> > 
> > > 
> > > On Sun, Jul 02, 2006 at 07:24:53PM +0000, nextgens at freenetproject.org 
> > > wrote:
> > > > Author: nextgens
> > > > Date: 2006-07-02 19:24:51 +0000 (Sun, 02 Jul 2006)
> > > > New Revision: 9430
> > > > 
> > > > Modified:
> > > >    trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
> > > > Log:
> > > > don't display the version number of freenet-ext : I don't know how to 
> > > > do backward compatibility ... so I remove it for the time beeing, 
> > > > waiting for the final architecture of freenet-ext to be designed
> > > > 
> > > > Modified: trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
> > > > ===================================================================
> > > > --- trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  
> > > > 2006-07-02 19:04:00 UTC (rev 9429)
> > > > +++ trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  
> > > > 2006-07-02 19:24:51 UTC (rev 9430)
> > > > @@ -12,7 +12,6 @@
> > > >  import freenet.client.InserterException;
> > > >  import freenet.config.SubConfig;
> > > >  import freenet.keys.FreenetURI;
> > > > -import freenet.node.ExtVersion;
> > > >  import freenet.node.Node;
> > > >  import freenet.node.Version;
> > > >  import freenet.node.useralerts.UserAlert;
> > > > @@ -415,16 +414,7 @@
> > > >                 buf.append("</div>\n");
> > > >                 buf.append("<div class=\"infobox-content\">\n");
> > > >                 
> > > > -               int ExtBuildNumber = -1;
> > > > -               String ExtVer = null;
> > > > -               try{
> > > > -                       ExtBuildNumber = ExtVersion.buildNumber();
> > > > -                       ExtVer = ExtVersion.cvsRevision;
> > > > -                       buf.append("Freenet "+Version.nodeVersion+" 
> > > > Build #"+Version.buildNumber()+" r"+Version.cvsRevision+"<br/>");
> > > > -                       buf.append("Freenet-ext Build 
> > > > #"+ExtBuildNumber+" r"+ExtVer+"<br/>");
> > > > -               }catch(Exception ex){
> > > > -                       // Compatibility code ... will be removed
> > > > -               }
> > > > +               buf.append("Freenet "+Version.nodeVersion+" Build 
> > > > #"+Version.buildNumber()+" r"+Version.cvsRevision+"<br/>");
> > > >                 
> > > >                 if(Version.buildNumber() < Version.highestSeenBuild && 
> > > > advancedDarknetOutputEnabled) {
> > > >                         buf.append("<br />");
> -- 
> Matthew J Toseland - toad at amphibian.dyndns.org
> Freenet Project Official Codemonkey - http://freenetproject.org/
> ICTHUS - Nothing is impossible. Our Boss says so.



> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to