Menu

#38 Debug output different after starting more then once

current_CVS_Version
open
ui-console (1)
5
2003-07-24
2003-07-24
Uwe Freese
No

Only a strange behaviour, I don't know what happens
inside. Should be checked.

When I start Inject/J with

Console.main({"-verbose", "-p", "myproject.ijp"});

in my program more then once, the debug output
changes. How can that be? main should create a new
instance every time?

----- Output after first run:

Starting Inject/J 0.5 Pre-Alpha (build 2)...
[...]
Exporting Source Files
recoder.java.CompilationUnit@a82a10

----- After third run:

Starting Inject/J 0.5 Pre-Alpha (build 2)...
[...]
Exporting Source Files
Exporting Source Files
Exporting Source Files
recoder.java.CompilationUnit@1f60f2b
recoder.java.CompilationUnit@1f60f2b
recoder.java.CompilationUnit@1f60f2b

Discussion

  • Uwe Freese

    Uwe Freese - 2003-07-24
    • milestone: --> current_CVS_Version
     
  • Sven Luzar

    Sven Luzar - 2003-08-01

    Logged In: YES
    user_id=430711

    Did you use the same VM for the different instances?
    Or did you start a new VM for a new instance?

     
  • Sven Luzar

    Sven Luzar - 2003-08-09

    Logged In: YES
    user_id=430711

    Currently we are using the recoder at the backend. And the
    recoder does not support multiple instances. (He works with
    many static vars.) The result is that we can support only
    one instance, too.

     
  • Uwe Freese

    Uwe Freese - 2003-08-09

    Logged In: YES
    user_id=583593

    I start a new Inject/J Console with
    Console.main({"-verbose", "-p", "myproject.ijp"});
    in the same VM. No two inject/J instances run at the same
    time. Maybe it would help to reset all static variables to a
    default value at the recorder's constuctor (whereever that is)
    instead of defining the default values in the code directly (this
    seems to be the case, or not?).

     

Log in to post a comment.