Bug Report creating instance of BXDatabase
Hi, Bug Report! When running this code in a class on my own package I receive an IllegalAccessException Class<?> c = Class.forName("org.basex.api.xmldb.BXDatabase"); Database db = (Database) c.newInstance(); java.lang.IllegalAccessException: Class my.package can not access a member of class org.basex.api.xmldb.BXDatabase with modifiers “" I think the problem is that the class is not public. Best regards Ignacio
Hi Ignacio, Thanks for the hint. I have changed the modifiers, and I have uploaded a new stable snapshot [1]. This probably indicates that the XMLDB API is hardly used anymore ;) Best, Christian [1] http://files.basex.org/releases/latest/ On Mon, Jul 31, 2017 at 5:24 PM, Ignacio Hernandez-Ros <Ignacio@reportingstandard.com> wrote:
Hi,
Bug Report!
When running this code in a class on my own package I receive an IllegalAccessException
Class<?> c = Class.forName("org.basex.api.xmldb.BXDatabase"); Database db = (Database) c.newInstance();
java.lang.IllegalAccessException: Class my.package can not access a member of class org.basex.api.xmldb.BXDatabase with modifiers “"
I think the problem is that the class is not public.
Best regards Ignacio
participants (2)
-
Christian Grün -
Ignacio Hernandez-Ros