Subject: | |
From: | |
Reply To: | |
Date: | Tue, 4 Aug 2015 16:03:12 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On Aug 4, 2015, at 12:31 PM, Ernesto Carrella <[log in to unmask]> wrote:
> Where in the code does MASON check if the JFreeChart library is available?
In sim.portrayal.inspector.PropertyInspector.java.
In the following code, notice the commented out errors. If you uncomment them and rebuild PropertyInspector.java, it'll generate lots of errors on trying to load non-existent JFreeChart classes.
try
{
_theClass = Class.forName((String)(classes.objs[x]), true, Thread.currentThread().getContextClassLoader());
}
catch (ClassNotFoundException error)
{
//error.printStackTrace(); // fail silently, it's annoying
continue; // no class, can't make menu
}
catch (NoClassDefFoundError error) // why does this even exist?
{
//error.printStackTrace(); // fail silently, it's annoying
continue; // no class, can't make menu
}
|
|
|