bugGNU Octave - Bugs: bug #37971, 'clear java' command needed for...


bug #37971: 'clear java' command needed for compatibility

Submitted by:  Rik <rik5>
Submitted on:  Fri 21 Dec 2012 07:45:14 PM UTC  
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 23 Aug 2016 04:02:47 PM UTC, comment #1:

Ernst, please stop commenting here, if you think the description in bug #37971 is wrong, just add a comment there.

I understand this bug completely different,
namely as I described in #48850:
clear java refers to clearing the class, i.e. unloading.

Ernst Reissner <ernstreissner>
Fri 21 Dec 2012 07:45:14 PM UTC, original submission:

This is a bug report just to track this issue and make sure it is not forgotten.

On a quick look, it doesn't look like it would be that difficult to implement. One could loop over objects in the symbol table, call isjava() on them, and delete them or not based on that test. It does look like a fair amount of C++ boilerplate code would be needed to accomplish that (nothing hard, but possibly tedious) as there would be modifying Fclear and adding a do_clear_java routine in variables.cc. In symtab.h you would probably need a clear_java, clear_java_pattern, do_clear_java_pattern, clear_java_regexp, and do_clear_java_regexp routines.

Rik <rik5>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one

   bug dependencies.


Carbon-Copy List
  • -unavailable- added by ernstreissner (Posted a comment)
  • -unavailable- added by rik5 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 22 Aug 2016 08:23:21 PM UTCmtmillerDependencies-=>bugs #48850 is dependent

    Back to the top

    Powered by Savane 3.1-cleanup1