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

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

[Octave-bug-tracker] [bug #53151] Clang OSX buildbot failing


From: Rik
Subject: [Octave-bug-tracker] [bug #53151] Clang OSX buildbot failing
Date: Thu, 8 Mar 2018 08:38:58 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #41, bug #53151 (project octave):

usejava() is designed to report whether a specific feature of Java exists.  In
this case, the test is for 'awt' or the Abstract Widget Toolkit.

The code in usejava.m is


    ## For each feature, try methods() on a Java class of a feature
    case "awt"
      try
        dum = methods ("java.awt.Frame");
        retval = ! javaMethod ("isHeadless", "java.awt.GraphicsEnvironment");
      end_try_catch


Is the Java interpreter on macOS so "helpful" that it tries to install a
missing package when you try and run a function from it, rather than simply
returning an error code?

If attempting to use a function isn't the proper way to do feature checks in
Java then someone who understands the language needs to tell us how to do it.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53151>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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