Commit b68a896c authored by Lionel Seinturier's avatar Lionel Seinturier

Support @EndsConversation methods in non @Conversational annotated interfaces.

parent dd21d70b
Tinfi 1.3.2
-----------
* support @EndsConversation methods in non @Conversational annotated interfaces
* fix proxy generation for generic methods to enable compilation with javac
......
......@@ -292,6 +292,7 @@ public class ScopeTestCase {
/**
* @since 1.3.2
*/
@Test
public void testScopeConversationCallback()
throws
ClassNotFoundException, InstantiationException, IllegalAccessException,
......
......@@ -151,10 +151,13 @@ extends AbstractProxyClassGenerator {
* example for callback interfaces associated with conversation
* scoped components.
*/
mv.visitln(" "+ConversationImpl.class.getName()+" conv = getConversation();");
mv.visitln(" "+ConversationImpl.class.getName()+" conv = peekConversation();");
}
mv.visitln(" conv.end();");
mv.visitln(" popConversation();");
}
if( conversationalItf != null ) {
mv.visitln(" conv.access();");
mv.visitln(" popConversation();");
}
}
......
......@@ -249,7 +249,7 @@ extends AbstractProxyClassGenerator {
* example for callback interfaces associated with conversation
* scoped components.
*/
mv.visitln(" "+ConversationImpl.class.getName()+" conv = getConversation();");
mv.visitln(" "+ConversationImpl.class.getName()+" conv = peekConversation();");
}
mv.visitln(" conv.end();");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment