Bug 105429 - jrockit and ajc10x.test222 fail
Summary: jrockit and ajc10x.test222 fail
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: 1.5.0RC1   Edit
Assignee: Alexandre Vasseur CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-28 05:58 EDT by Alexandre Vasseur CLA
Modified: 2005-12-06 11:41 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Vasseur CLA 2005-07-28 05:58:01 EDT
don't know why but that one fails on jrockit 1.5 _ 03

removed from the suite for now since can't figure what s happening
(looks like infinite loop in m5, though there is the arythmetic exception, and
even the m6 call as one can see from the sandbox/*.out test event output)
Comment 1 Adrian Colyer CLA 2005-09-27 05:59:43 EDT
raising to P2 for run up to AJ 5 RC1. 
Comment 2 Adrian Colyer CLA 2005-12-05 22:45:21 EST
I was able to reproduce this, and it certainly is very odd behaviour. Note that if I change the definition of the m5 method from:

    void m5() {
        while (true) {
            int x = 0;
            int y = 2/x;
        }
    }

to:

    void m5() {
        while (true) {
            int x = 0;
            int y = 2/x;
            throw new ArithmeticException();
        }
    }

to explicitly throw the expected ArithmeticException then everything works fine as expected. Since this change does not affect the situation that the test case is actually trying to test, I've checked in this change and re-enable the test in the suite. I suspect there is some jrockit bug lurking wrt. the division by zero in the infinite loop but goodness knows what it is as the program gets all the way to the end (past the loop in question), but never actually terminates.

I don't think there is an identifiable AspectJ bug here, so I'm closing the report and we just need to be aware if we ever see anything like this occuring on jrockit in the wild....
Comment 3 Alexandre Vasseur CLA 2005-12-06 11:41:23 EST
ok