Reproduce Steps:
1 unzip basic1.zip and mvn eclipse:eclipse, then importing the project into eclipse
2 run junit test on HotelTest.java
You will see the following result:
Entering I1
Entering I2
Exiting I2
Exiting I1
However, according to @Priority's definition, Interceptors with the smaller priority values are called first, so, right result should be the following:
Entering I2
Entering I1
Exiting I1
Exiting I2
Whether I am wrong?
Thanks
Tang
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reproduce Steps:
1 unzip basic1.zip and mvn eclipse:eclipse, then importing the project into eclipse
2 run junit test on HotelTest.java
You will see the following result:
Entering I1
Entering I2
Exiting I2
Exiting I1
However, according to @Priority's definition, Interceptors with the smaller priority values are called first, so, right result should be the following:
Entering I2
Entering I1
Exiting I1
Exiting I2
Whether I am wrong?
Thanks
Tang