C++ Exception
When compiling the following program the IDE gives a C++ Exception
·
// test variable locality
·
import stamp.core.*;
·
public class Locality{
·
· static LocalVariables here = new LocalVariables(20);
·
· static void main(){
· }
}
·
class LocalVariables{
·
· void LocalVariables(int argument){
··· argument=argument;
· }
}
·
// test variable locality
·
import stamp.core.*;
·
public class Locality{
·
· static LocalVariables here = new LocalVariables(20);
·
· static void main(){
· }
}
·
class LocalVariables{
·
· void LocalVariables(int argument){
··· argument=argument;
· }
}
Comments
regards peter
The source code you see is all there is to it.
I just discovered that the program has a syntax error, the constructor has a void keyword that shouldn't be there. When I remove the void it compiles without problems.
That way I am sure I have the exact file to reproduce the error so
I can fix the C++ exception.
regards peter
The error source is the 'void' instead of 'public' for class LocalVariables.
On my system, Jikes aborts and I must 3 times click 'don't send rapport'
before the C++ exception appears. This exception appears both
in release 2.0.3 IDE as in the beta IDE.
I will see if I can prohibit the C++ exception, preferable with a message.
There is nothing I can do about Jikes, so the abort windows will
keep popping up for such syntax errors. So perhaps it is best to simply
prohibit the C++ exception window to popup as well. There really is no
point in having a message stating Jikes aborted, as that is already clear.
regards peter