« Return to Thread: JPL and set_prolog_flag(unknown, fail)

JPL and set_prolog_flag(unknown, fail)

by Christoph Quix :: Rate this Message:

Reply to Author | View in Thread

Hi,

I have an application which calls Prolog from Java.
After setting the Prolog flag "unknown" to "true"
(unknown predicates fail silently instead of raising exceptions),
JPL throws an exception when I am retrieving results
from Prolog. In particular, there is a NullPointerException
in Compound.quotedName() (called by Compound.toString).

This has probably to do with the autoload feature,
which is implicitly disabled if "unknown" is set to fail.

I am currently using "warning" as value for "unknown",
which works, but I do not want the warning messages.

Regards,
  Christoph

_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

 « Return to Thread: JPL and set_prolog_flag(unknown, fail)