Ignore:
Timestamp:
06/09/17 08:50:52 (6 years ago)
Author:
Mark Evenson
Message:

Refactor JAVAPARSER dependencies out of JSS

JAVAPARSER needs ABCL-ASDF to load its Maven artifact, but ABCL-ASDF
needs JSS. Therefore we refactor these dependencies into the ASDF
infrastructure rather than dealing with CL:REQUIRE, which isn't going
to work anyways unless there is another mechanism to load Maven
artifacts.

The JAVAPARSER system is not working due to dependency on the missing
symbols CL-USER::REPLACE-ALL and CL-USER::TREE-REPLACE, but that was
the case before this patch as Alan mistakenly didn't include it in his
submitted patch series.

Location:
trunk/abcl/contrib/jss/t
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/abcl/contrib/jss/t/jss-tests.lisp

    r15064 r15065  
    6060(finalize)
    6161
    62 (plan 1)
    63 
    64 (in-package :jss)
    65 (defparameter expanded '(let ((jss::this jss::*object-for-this*))
    66       (jcall "getLoaded"
    67        (jcall "load"
    68         (jcall "make"
    69          (jcall "intercept"
    70           (jcall "method"
    71            (jcall "subclass"
    72             (new '|ByteBuddy|)
    73             (find-java-class '|Object|)
    74             t)
    75            (jstatic "named"
    76               '|ElementMatchers|
    77               "toString"))
    78           (jstatic "value"
    79              '|FixedValue|
    80              "Hello World!")))
    81         (jcall "getClassLoader"
    82          (jcall "getClass" jss::this))))))
    83 
    84 (defparameter source '#1"new ByteBuddy().subclass(Object.class,t)
    85    .method(ElementMatchers.named("toString"))
    86    .intercept(FixedValue.value("Hello World!"))
    87    .make()
    88    .load(getClass().getClassLoader())
    89    .getLoaded()" )
    90 
    91 (in-package :jss-test)
    92 
    93 (is jss::source
    94     jss::expanded)
    95 
    96 (finalize)
Note: See TracChangeset for help on using the changeset viewer.