Michael Pavlov

+ Follow
since Mar 24, 2002
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michael Pavlov

Hi Gian Franco,

Especial about refactoring; you mentioned that you
"are still holding on to a traditional (old ) way of developing
software..."; I know what you mean, well you should really try
Eclipse; for example we (our developer team) just completed a
major refactoring process in two days using Eclipse!; I don't
have to mention that with traditional tools and editors this
process would've take 2-3 weeks! (renaming and removing classes,
creating new well structured packages, changing method signatures,
then recompiling and dealing with the errors from the old method
calls and fix them one by one, that takes a lot of time; this
great IDE is checking all the references and is changing them
accordingly so you don't have to trace all the method calls to
match the new signatures etc...). You would love it ...

Good luck,
Thanks Bill,

Yes, I will check it out and raise a bug in case...

Thank you very much,
Hi Bill,

The latest version of Eclipse that I have found to be truly stable is 3.0m8.
People are trying to avoid the more releases, including: 3.0m9, 3.0rc1, and 3.0rc3.
One question is related to the "Window>Preferences>Workbench>Perform build automatically on resource modification"
option which is not working properly in 3.0RC1; more precise Eclipse doesn't rebuild
automatically your project after a "save all" command let's say; O.K. I was thinking that
because I'm working on two projects in the same time, maybe Eclipse it's confused, but even after setting
the "Window>Preferences>Build Order" to the right build order I observed the same
behavior and I had to recompile all project in command line just to make sure...
Another example is in 3.0RC1 the code formatter preferences import/export XML settings
feature is broken, so you cannot apply your own standard code formatting preferences...
Why is that ?

Thanks in advance,
Hi All,
We are using a childPOA to manage PushConsumer servants in a CORBA server setting. When our suppiler/consumer instances are functioning locally everything runs normally ! When we distribute he two , we get the following exception propagated to the EventChannel :

Maybe it's the way we set our policy set for the childPOA so here you go what we currently using:

I tried also with TRANSIENT instead of PERISTENT for LifespanPolicyValue but I got the same run time exception; another quick question: when you use "pushConsumer._this()" to activate the consumer this will try to do that by activating an "adapter activator" to get the childPOA from the root ???
Any help would be greatly apprreciated,
Thanks in advance and best regards,
21 years ago
I am using JBuilder 6 Enterprise trial version.
Thanks in advance...
Yes,is only a JBuilder related problem(=
actually a big difficulty!). It doesn't allow me
to use other packages in the import statements
then the regular/standard API stuff... I mean
if you have developed your own package, then you
build another project, how do you manage to import
your previous package into this new created project? I tried to use the "Import Project Wizard" which gets the package inside your "Project Pane" but at runtime JBuilder doesn't recognize it !!! I tried to configure the libraries and I added the package as a "Required
Library" or source with the correct path provided, but even like that didn't worked. This (= to import your own packages) and using inner classes or anonymous classes, are two java topics hard to work with inside borland JBuilder !!! I read the documentation again and again and still the same
problem. Please help me with importing packages
inside JBuilder.
Thanks in advance,
Best Regards
PS: without JBuilder is O.K., but unfortunately
I have to use this tool, so if you know please
help me ...
Hello everybody,
I'm new to this IDE tool and I have big problems
importing some package that I need. I put the
package in required libraries (specifying also
the full path to that directory) but JBuilder
doesn't see it... Just to mention that I checked
all the class paths to the sources, but JBuilder
doesn't like me :-(
Any help will be greatly appreciated,
I checked the fallowing code both on Unix and Linux, and I got ONLY false to the output!!!; it
remains only the Windows platform, but if the output it's different I should change my motto to "Programm once, run everywhere. NEVER bet on it!"
Just joking, here is the code:
public class SyncTest implements Runnable{
private int x;
private int y;
private synchronized void setX(int i){x=i;}
private synchronized void setY(int i){y=i;}
public void setXY(int i){
// Thread.sleep(100);
//}catch(Exception e){}
public synchronized boolean check(){
return x!=y;
public void run(){
for(int i=0;i<100;i++){
public static void main(String[] args){
SyncTest t = new SyncTest();
Thread[] ts = new Thread[10];
for(int i=0;i<ts.length;i++){
ts[i]=new Thread(t);

String ourThreads = ts.toString();
System.out.println("< " + ourThreads + " >");
Did you tried to comment out the sleep() and run it?
There is no difference between questions 7 and 15.
So the answer it will be always 2. Probably they've forgotten to change (or to take out) that something from #15 (yes they might do this in the real exam...).
Hi again,
I fallowed the links and I got what you said.
I was talking not only about wildcard imports of packages and the regular classes from the API (in which case you are perfectly right ofcourse!),
but especially about new classes being part of a
large application (like the one that I mentioned)
with more then 1000 java classes. We (my team)
observed that the product was faster meaning that
the time for execution was with 30-150 seconds
shorter then in the past ( the range is related
with what particular feature from within that product did you choosed to execute). That's all.
However, I'm not sure how this affected the compilation when all files get loaded, or the
runtime, but what I noticed is that the product
was a little bit faster after the elimination
of the import statements of classes not involved
in the actual piece of code...
Thank you very much for your input,
Best Regards,
Which of the following statements are true?
1) Adding more classes via import statements will cause a performance overhead, only import classes you actually use.
2) Under no circumstances can a class be defined with the private modifier
3) A inner class may under some circumstances be defined with the protected modifier
4) An interface cannot be instantiated
Right answers: 3 and 4
In my opinion 1) should be also true. I understood
Mr. Green explanation but consider this: I had a
big project with many authors before me; one of
them (not a real Java programmer considering his
code added in the import statements (of all
the code that he touched) all the possible classes
that were slightly close to the subject (probably just to make sure that everything is compiling fine and not to miss something, but he didn't care
that in fact half of the import statements waren't
necessary in the actual piece of code!). I was allowed( even encouraged by my mentor=guru, when he heard about it) to get rid of the unnecessary import statements and this made the code more robust actually! So quick question: what is your
opinion about this ?
Thanks in advance,
Hi all,
Valentin, in the thread/discussion that you mentioned is a piece of code:
public class Val1{
public static void main(String[] args){
final char c = 10;
final short s = c;
which in my case with JDK 1.2.2 on Linux platform
doesn't compile and I got the regular error:
Val1.java:4: Incompatible type for declaration. Explicit cast needed to convert char to short.
final short s = c;
1 error
So, my question is: for the purpouse of SCPJ2
shouldn't we stick with the statement from
Khalid&Rasmussen book?
Thanks in advance,
Best Regards,