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

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

[Octave-bug-tracker] [bug #55430] usejava starts the JVM if it hadn't be


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #55430] usejava starts the JVM if it hadn't been initialized yet
Date: Wed, 9 Jan 2019 13:16:54 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

URL:
  <https://savannah.gnu.org/bugs/?55430>

                 Summary: usejava starts the JVM if it hadn't been initialized
yet
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Wed 09 Jan 2019 06:16:52 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The function usejava is meant to return whether a specific java feature is
available. But in the specific case of 'usejava ("jvm")' the Matlab
documentation says:

> Java Virtual Machine software (JVM) is running.

This is quite different.  In the case of Octave, initialization of the JVM is
delayed until required so I usejava should return false until that happens.
And usejava should not initialise the JVM either.

Alternatively, we can say that Matlab documentation should not be interpreted
literally in this case. We can say that in Matlab, having the JVM running is
the same as having the JVM available because it's initialization happens
either at startup or never and that "fixing" this would actually make things
more complicated.

Anyway, here's a bug for discussion on whatever gets decided, for future
reference.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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