Clojure

GC Issue 25: ClassNotFoundException when loading a clojure app under the Android vm

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Reported by va3pip, Dec 29, 2008
What (small set of) steps will reproduce the problem?
Compile and run a clojure based Android app under the emulator.  While
loading, it'll throw a clojure.core__init class not found exception. A good
sample clojure Android app is at: 
    http://github.com/Nafai77/helloandroid/tree/master

What is the expected output? What do you see instead?
It should be able to find clj based classes

What version are you using?
svn 1191

Please provide any additional information below.
I've attached a patch to RT.java that changes classForName() and
loadClassForName() to try the default classloader if DynamicClassLoader
fails to find the requested class.  I probably overlooked some corner case
with these 2 changes, so I'll expect you'll fix/change this patch :) - but
I'll send in a CA tomorrow anyways, just in case.  Note: it still won't run
the app as there's a VerifyError with StringBuilder.append() - for details,
see:   http://paste.lisp.org/display/72811

 dalvikvm.patch
791 bytes Download
Comment 1 by richhickey, Dec 30, 2008
svn 1192
Status: Fixed

People

  • Assignee:
    Unassigned
    Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: