[Bug libgcj/21775] NPE in java::util::logging::Logger::getCallerStackFrame caused by incorrect hand-optimization

greenrd at greenrd dot org gcc-bugzilla@gcc.gnu.org
Fri May 27 18:12:00 GMT 2005


------- Additional Comments From greenrd at greenrd dot org  2005-05-27 18:12 -------
Here is the patch, which I've tested with both my reduced and my real test cases:

--- libjava/java/util/logging/natLogger.cc.orig 2005-05-27 19:09:32.000000000 +0100
+++ libjava/java/util/logging/natLogger.cc      2005-05-27 00:43:24.000000000 +0100
@@ -31,7 +31,7 @@
   gnu::gcj::runtime::StackTrace *t
     = new gnu::gcj::runtime::StackTrace(4);
   java::lang::Class *klass = NULL;
-  int i = 2;
+  int i = 1;
   try
     {
       // skip until this class

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21775



More information about the Java-prs mailing list