java/extensions/java/lang/String.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 23 Jan 2013 16:22:00 +0000
branchrefactoring-classpath
changeset 1989 131b7459fdab
parent 1818 2e5ed72e7dfd
child 1997 8bcca8a0e8a1
permissions -rw-r--r--
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM. However, class loading is broken now and Java does not boot.

"{ Package: 'stx:libjava' }"

!

!(Java classForName:'java.lang.String') class methodsFor:'queries'!

javaWrap: object
    | jstring |

    object isNil ifTrue:[ ^ nil ].
    jstring := self basicNew.
    jstring perform: #'<init>([C)V' with: object.
    ^jstring
! !
!(Java classForName:'java.lang.String') class methodsFor:'queries'!

javaWrapRequired
    "Returns true, if a #javaWrap: has to be called
     prior an instance of Smalltalk object is passed 
     as an argument to Java method, whoose formal tyoe
     is the receiver."

    ^true
! !