octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58312] [octave forge] (io) Defer Java detecti


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #58312] [octave forge] (io) Defer Java detection until a function is called
Date: Fri, 8 May 2020 13:01:44 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36

Follow-up Comment #6, bug #58312 (project octave):

My thinking was not to scrap the init routine, but to keep it exactly as is,
just move it from PKG_ADD to each public or private function that uses the
Java support that it sets up. You can add a persistent variable to ensure that
it only runs once.

This is similar to several examples in Octave, such as the image functions
which all call 'maybe_initialize_magick', or the symbolic package which
initializes its IPC to SymPy as needed.

FWIW, I believe this warning started with OpenJDK 10 or 11, I have version 11.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58312>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]