Re: [Bluemusic-devel] New bug fixes
Brought to you by:
kunstmusik
From: Michael B. <got...@ya...> - 2005-09-12 20:33:22
|
No problem. Sorry I missed that accessor; wierd how that stuff can slip through the radar. Let me know if you want me to fix it... Michael Bechard --- Steven Yi <ste...@gm...> wrote: > Hi Michael, > > It's weird but I guess you missed that I had already > exposed the class > loader with getPluginLoader in BlueSystem (you added > getClassLoader). > I like it named as getClassLoader though, so I can > remove the other > method and have the code I did use getClassLoader > instead. > > I had fallen into the same thing where Class.forName > does not use the > custom ClassLoader, which took me a while to > understand how that > works. As far as I know, when you load a Class > object, you can use > that Class object to make new instances as that > Class object has a > reference to the classLoader that loaded it. If you > use > Class.forName(), this will only have a reference to > the system > ClassLoader, so the custom one will not be used. I > had ran into the > Class.forName issue when I was working with the > plugin soundObject, > but didn't ever get around for Instruments and > NoteProcessors. > > Thanks a lot for looking into this. I'll try to get > some time in > tonight to take a look at the plugin loading for > Instrument's. I've > also got jury duty selection today which might mean > getting picked, > and James Hearon and I are working pretty hard on > the new Csound > Journal (which I have to finish up an article for!), > so for the next > few days I'll probably be communicating a little > slower than I > normally do. > > Thanks again! > steven > > > > > As for the Byte reading, I'm not sure how it was > broken, but thanks > for the fix! I think I might change that > ClassByteArrayOutputStream > into a utility class that doesn't inherit from > ByteArrayOutputStream > as it seems it will be more inline with all the > other utility classes > that way. I think there are some other classes that > do their own byte > reading in and it might be better labelled > differently than > ClassBtyeArrayOutputStream if it will be used by > other classes, and > would express its intent with a different name. > > > > On 9/12/05, Michael Bechard <got...@ya...> > wrote: > > Added bug fixes that fixed the plugin loader > reading > > only part of a class' bytes from the jar file > before > > the call to defineClass. > > > > There's another bug fix, though I may be off the > mark > > on this one. I found that my plugin wouldn't load > > (after the call to loadPlugins) with the forName > > function, like it had lost the reference to the > class > > loader. I made it use the PluginClassLoader's > > loadClass function when forName failed. The real > > problem, though, is why forName wouldn't work. > Steven, > > did you ever run into this? > > > > Michael Bechard > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software > Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing > Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Bluemusic-devel mailing list > > Blu...@li... > > > https://lists.sourceforge.net/lists/listinfo/bluemusic-devel > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Bluemusic-devel mailing list > Blu...@li... > https://lists.sourceforge.net/lists/listinfo/bluemusic-devel > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |