From 2fc7f17ec72769ec0b414e28e15976769a9cec5e Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 4 Sep 2004 00:19:42 +0000 Subject: [PATCH] Oops, undo last commit git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6221 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/java.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SWIG/Source/Modules/java.cxx b/SWIG/Source/Modules/java.cxx index e32393750..23b162491 100644 --- a/SWIG/Source/Modules/java.cxx +++ b/SWIG/Source/Modules/java.cxx @@ -3029,7 +3029,7 @@ class JAVA : public Language { /* Make sure that we return something in the case of a pure * virtual method call for syntactical reasons. */ if (!is_void) - Printf(w->code, "return 0;"); + Printf(w->code, "return %s;", qualified_return); else Printf(w->code, "return;\n"); } @@ -3307,7 +3307,7 @@ class JAVA : public Language { /* emit code */ if (status == SWIG_OK && output_director) { if(!is_void) { - Replaceall(w->code,"$null", "0"); + Replaceall(w->code,"$null", qualified_return); } else Replaceall(w->code,"$null",""); Wrapper_print(w, f_directors);