/*
* JavaInspect - Utility to visualize java software
- * Copyright (C) 2013-2015, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2013-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
if (!isVisible())
return;
- indexFields(clazz.getDeclaredFields());
- indexFields(clazz.getFields());
+ try {
+ indexFields(clazz.getDeclaredFields());
+ indexFields(clazz.getFields());
+ } catch (NoClassDefFoundError error){
+ // TODO: better logging of this error
+ System.out.println(error.toString());
+ }
indexMethods(clazz);
@Override
public String getGraphId() {
final String result = "class_"
- + fullyQualifiedName.replace('.', '_').replace(";", "")
- .replace("[L", "").replace('$', '_');
+ + fullyQualifiedName
+ .replace('.', '_')
+ .replace(";", "")
+ .replace("[L", "")
+ .replace("[[", "")
+ .replace('$', '_');
return result;
}