Bug Report creating instance of BXDatabase

Monday, 31 July 2017 · 2 messages
IH
Ignacio Hernandez-Ros31 Jul 2017 17:24 #
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
CG
Christian Grün31 Jul 2017 17:33 #
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/
Quoted text · Ignacio Hernandez-Ros · 21 lines
On Mon, Jul 31, 2017 at 5:24 PM, Ignacio Hernandez-Ros <Ignacio at 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 >

⚡Generated with XQuery