Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion junit classes in live Webkit code

Received: by 10.68.138.14 with SMTP id qm14mr5111062pbb.5.1349817024900;
        Tue, 09 Oct 2012 14:10:24 -0700 (PDT)
X-BeenThere: android-developers@googlegroups.com
Received: by 10.68.197.72 with SMTP id is8ls27643970pbc.5.gmail; Tue, 09 Oct
 2012 14:06:27 -0700 (PDT)
Received: by 10.68.233.130 with SMTP id tw2mr5605612pbc.12.1349816787893;
        Tue, 09 Oct 2012 14:06:27 -0700 (PDT)
Date: Tue, 9 Oct 2012 14:06:27 -0700 (PDT)
From: William Ferguson <william.fergu...@xandar.com.au>
To: android-developers@googlegroups.com
Message-Id: <06cd71e2-5bf0-4952-9896-32988ee74599@googlegroups.com>
Subject: junit classes in live Webkit code
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1166_10468163.1349816787506"

------=_Part_1166_10468163.1349816787506
Content-Type: multipart/alternative; 
	boundary="----=_Part_1167_12537313.1349816787506"

------=_Part_1167_12537313.1349816787506
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

I just received the following crash report

java.lang.NoClassDefFoundError: junit.framework.Assert
at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:658)
at java.lang.Thread.run(Thread.java:1019)

This is for Gingerbread (2.3.6). Frankly I couldn't believe that a test 
class was burnt into and being used by a production class. I wonder whether 
they really meant to use the Java "assert" statement instead and hope it 
has been fixed since. The Junit Assert class shouldn't be used outside of a 
test harness. 

Has anyone else seen anything similar?

William

------=_Part_1167_12537313.1349816787506
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<div><span style=3D"color: rgb(0, 0, 0); font-family: 'Times New Roman'; fo=
nt-size: medium; ">I just received the following crash report</span></div><=
span style=3D"color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-siz=
e: medium; "><div><span style=3D"color: rgb(0, 0, 0); font-family: 'Times N=
ew Roman'; font-size: medium; "><br></span></div>java.lang.NoClassDefFoundE=
rror: junit.framework.Assert</span><br style=3D"color: rgb(0, 0, 0); font-f=
amily: 'Times New Roman'; font-size: medium; "><span style=3D"color: rgb(0,=
 0, 0); font-family: 'Times New Roman'; font-size: medium; ">at android.web=
kit.WebViewCore$WebCoreThread.run(WebViewCore.java:658)</span><br style=3D"=
color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; "><=
span style=3D"color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-siz=
e: medium; ">at java.lang.Thread.run(Thread.java:1019)</span><br><div><span=
 style=3D"color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: m=
edium; "><br></span></div><div><span style=3D"color: rgb(0, 0, 0); font-fam=
ily: 'Times New Roman'; font-size: medium; ">This is for Gingerbread (2.3.6=
). Frankly I couldn't believe that a test class was burnt into and being us=
ed by a production class. I wonder whether they really meant to use the Jav=
a "assert" statement instead and hope it has been fixed since. The Junit As=
sert class shouldn't be used outside of a test harness.&nbsp;</span></div><=
div><span style=3D"color: rgb(0, 0, 0); font-family: 'Times New Roman'; fon=
t-size: medium; "><br></span></div><div><span style=3D"color: rgb(0, 0, 0);=
 font-family: 'Times New Roman'; font-size: medium; ">Has anyone else seen =
anything similar?</span></div><div><span style=3D"color: rgb(0, 0, 0); font=
-family: 'Times New Roman'; font-size: medium; "><br></span></div><div><spa=
n style=3D"color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: =
medium; ">William</span></div>
------=_Part_1167_12537313.1349816787506--

------=_Part_1166_10468163.1349816787506--