Commit 5866647f authored by Lionel Seinturier's avatar Lionel Seinturier

Refactor to decrease the dependency to Juliac.

parent 6452c02a
...@@ -89,7 +89,6 @@ extends AbstractInterceptorSourceCodeGenerator { ...@@ -89,7 +89,6 @@ extends AbstractInterceptorSourceCodeGenerator {
/* /*
* Add type parameters if any. * Add type parameters if any.
*/ */
Class<?> proxycl = jc.loadClass(signature);
String[] tpnames = ClassHelper.getTypeParameterNames(proxycl); String[] tpnames = ClassHelper.getTypeParameterNames(proxycl);
if( tpnames.length != 0 ) { if( tpnames.length != 0 ) {
String s = ClassHelper.getTypeParameterNamesSignature(tpnames); String s = ClassHelper.getTypeParameterNamesSignature(tpnames);
......
...@@ -70,7 +70,6 @@ extends InterfaceImplementationClassGenerator { ...@@ -70,7 +70,6 @@ extends InterfaceImplementationClassGenerator {
*/ */
String signature = it.getFcItfSignature(); String signature = it.getFcItfSignature();
sb.append(signature); sb.append(signature);
Class<?> proxycl = jc.loadClass(signature);
String[] tpnames = ClassHelper.getTypeParameterNames(proxycl); String[] tpnames = ClassHelper.getTypeParameterNames(proxycl);
if( tpnames.length != 0 ) { if( tpnames.length != 0 ) {
String s = ClassHelper.getTypeParameterNamesSignature(tpnames); String s = ClassHelper.getTypeParameterNamesSignature(tpnames);
......
...@@ -103,7 +103,6 @@ extends AbstractProxyClassGenerator { ...@@ -103,7 +103,6 @@ extends AbstractProxyClassGenerator {
*/ */
String signature = it.getFcItfSignature(); String signature = it.getFcItfSignature();
sb.append(signature); sb.append(signature);
Class<?> proxycl = jc.loadClass(signature);
String[] tpnames = ClassHelper.getTypeParameterNames(proxycl); String[] tpnames = ClassHelper.getTypeParameterNames(proxycl);
if( tpnames.length != 0 ) { if( tpnames.length != 0 ) {
String s = ClassHelper.getTypeParameterNamesSignature(tpnames); String s = ClassHelper.getTypeParameterNamesSignature(tpnames);
...@@ -122,7 +121,6 @@ extends AbstractProxyClassGenerator { ...@@ -122,7 +121,6 @@ extends AbstractProxyClassGenerator {
* if any. * if any.
*/ */
String signature = it.getFcItfSignature(); String signature = it.getFcItfSignature();
Class<?> proxycl = jc.loadClass(signature);
String[] tpnames = ClassHelper.getTypeParameterNames(proxycl); String[] tpnames = ClassHelper.getTypeParameterNames(proxycl);
if( tpnames.length != 0 ) { if( tpnames.length != 0 ) {
String s = ClassHelper.getTypeParameterNamesSignature(tpnames); String s = ClassHelper.getTypeParameterNamesSignature(tpnames);
...@@ -209,7 +207,7 @@ extends AbstractProxyClassGenerator { ...@@ -209,7 +207,7 @@ extends AbstractProxyClassGenerator {
if( oneWayMeth != null ) { if( oneWayMeth != null ) {
Class<?> rtype = proxym.getReturnType(); Class<?> rtype = proxym.getReturnType();
if( ! rtype.getName().equals("void") ) { if( ! rtype.getName().equals("void") ) {
UClass uc = UClass.get(proxycl); UClass<?> uc = UClass.get(proxycl);
final String msg = final String msg =
"@OneWay annotated method "+proxym.toString()+" in "+ "@OneWay annotated method "+proxym.toString()+" in "+
uc.toString(proxycl)+" should return void"; uc.toString(proxycl)+" should return void";
......
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