author | vranyj1 |
Sun, 11 Nov 2012 15:19:21 +0000 | |
branch | jk_new_structure |
changeset 1815 | be54c97a41e4 |
parent 1812 | 7b8fcf7d0562 |
permissions | -rw-r--r-- |
877 | 1 |
" |
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1155 | 3 |
|
4 |
New code and modifications done at SWING Research Group [1]: |
|
5 |
||
877 | 6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
7 |
SWING Research Group, Czech Technical University in Prague |
|
8 |
||
9 |
This software is furnished under a license and may be used |
|
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
15 |
||
1155 | 16 |
[1] Code written at SWING Research Group contains a signature |
17 |
of one of the above copright owners. For exact set of such code, |
|
18 |
see the differences between this version and version stx:libjava |
|
19 |
as of 1.9.2010 |
|
877 | 20 |
" |
752 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
23 |
LibraryDefinition subclass:#stx_libjava |
|
24 |
instanceVariableNames:'' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'* Projects & Packages *' |
|
28 |
! |
|
29 |
||
877 | 30 |
!stx_libjava class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1155 | 35 |
|
36 |
New code and modifications done at SWING Research Group [1]: |
|
37 |
||
877 | 38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
39 |
SWING Research Group, Czech Technical University in Prague |
|
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
1155 | 48 |
[1] Code written at SWING Research Group contains a signature |
49 |
of one of the above copright owners. For exact set of such code, |
|
50 |
see the differences between this version and version stx:libjava |
|
51 |
as of 1.9.2010 |
|
877 | 52 |
|
53 |
" |
|
54 |
! ! |
|
752 | 55 |
|
756 | 56 |
!stx_libjava class methodsFor:'accessing'! |
57 |
||
765 | 58 |
svnRepositoryUrl |
59 |
||
60 |
^'https://jv@swing.fit.cvut.cz/svn/stx/libjava/branches/jk_new_structure/src' |
|
61 |
||
62 |
! |
|
63 |
||
756 | 64 |
svnRepositoryUrlBase |
65 |
||
66 |
| url | |
|
67 |
url := stx_libjava svnRepositoryUrl. |
|
68 |
url ifNil:[url := 'https://swing.fit.cvut.cz/svn/stx/libjava/trunk/src']. |
|
69 |
(url endsWith: 'src') ifTrue:[url := url copyTo: url size - 4]. |
|
70 |
^url |
|
71 |
||
72 |
"Created: / 08-04-2011 / 16:57:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
73 |
! ! |
|
74 |
||
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
75 |
!stx_libjava class methodsFor:'accessing - tests'! |
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
76 |
|
833
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
77 |
excludedFromTestSuite |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
78 |
"List of testcases and/or tests excluded from testsuite. |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
79 |
Entries maybe ClassName or #(ClassName testName) |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
80 |
" |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
81 |
^ #( |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
82 |
LookupTests |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
83 |
) |
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
84 |
|
833
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
85 |
"Created: / 03-06-2011 / 17:04:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
86 |
! |
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
87 |
|
834 | 88 |
testSuite |
89 |
||
861
fab84333fa2e
Tests reordered, hope this will workaround the segfault
vranyj1
parents:
860
diff
changeset
|
90 |
| suite javaTestCases stTests | |
834 | 91 |
suite := super testSuite. |
1410
0b2580857528
Mauver testsuite excluded from default libjava tests
vranyj1
parents:
1405
diff
changeset
|
92 |
stTests := suite tests. |
862 | 93 |
suite := TestSuite new. |
94 |
suite name: self package. |
|
834 | 95 |
JavaTestsLoader load. |
96 |
||
97 |
javaTestCases := OrderedCollection new. |
|
98 |
||
99 |
Java allClassesDo: |
|
100 |
[:jclass| |
|
1461 | 101 |
(jclass name ~~ #'stx/libjava/tests/JUnit3Tests' |
102 |
and:[jclass name ~~ #'stx/libjava/tests/JUnit4Tests' |
|
834 | 103 |
and:[jclass isTestCaseLike]]) |
104 |
ifTrue: |
|
105 |
[ | tc | |
|
106 |
tc := jclass asTestCase. |
|
107 |
tc isAbstract ifFalse:[javaTestCases add:tc ]]]. |
|
108 |
||
854
e165b3da9adb
Fixes for running tests in separate processes (required since VM often crash)
vranyj1
parents:
851
diff
changeset
|
109 |
javaTestCases do: |
1312 | 110 |
[:each | |
111 |
suite addTests:each buildSuite tests ]. |
|
834 | 112 |
|
862 | 113 |
|
114 |
suite tests addAll: stTests. |
|
115 |
||
834 | 116 |
suite tests withIndexDo: |
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
834
diff
changeset
|
117 |
[:t :i| |
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
834
diff
changeset
|
118 |
Stdout nextPutAll: i printString; space; nextPutAll: t printString; cr]. |
834 | 119 |
|
120 |
^suite |
|
121 |
||
122 |
" |
|
123 |
stx_libjava testSuite |
|
124 |
||
125 |
" |
|
126 |
||
127 |
"Created: / 07-05-2011 / 19:58:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
834
diff
changeset
|
128 |
"Modified: / 04-06-2011 / 17:23:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
1461 | 129 |
"Modified: / 09-04-2012 / 20:44:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
860 | 130 |
! |
131 |
||
132 |
testSuiteWithoutJavaTests |
|
133 |
||
134 |
^super testSuite. |
|
135 |
||
136 |
"Created: / 21-06-2011 / 17:33:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
137 |
! ! |
752 | 138 |
|
139 |
!stx_libjava class methodsFor:'description'! |
|
140 |
||
141 |
excludedFromPreRequisites |
|
142 |
"list all packages which should be ignored in the automatic |
|
143 |
preRequisites scan. See #preRequisites for more." |
|
144 |
||
145 |
^ #( |
|
146 |
) |
|
147 |
! |
|
148 |
||
149 |
preRequisites |
|
150 |
"list all required packages. |
|
151 |
This list can be maintained manually or (better) generated and |
|
152 |
updated by scanning the superclass hierarchies and looking for |
|
153 |
global variable accesses. (the browser has a menu function for that) |
|
154 |
Howevery, often too much is found, and you may want to explicitely |
|
155 |
exclude individual packages in the #excludedFromPrerequisites method." |
|
156 |
||
157 |
^ #( |
|
1812 | 158 |
#'stx:goodies/sunit' "TestAsserter - superclass of JavaTestsResource " |
1815 | 159 |
#'stx:libbasic' "PeekableStream - superclass of JavaSocket " |
160 |
#'stx:libbasic2' "BitArray - superclass of extended BooleanArray " |
|
1793 | 161 |
#'stx:libbasic3' "WrappedMethod - extended " |
1815 | 162 |
#'stx:libcomp' "MessageNode - referenced by ProxyMethodBlockInvocationNode>>generate: " |
752 | 163 |
#'stx:libhtml' "URL - referenced by JavaEmbeddedFrameView>>setupAppletFrameIn:initializeJava: " |
1812 | 164 |
#'stx:libtool' "WorkspaceApplication - referenced by GroovyEvaluator>>evaluate:in:receiver:notifying:logged:ifFail: " |
1815 | 165 |
#'stx:libview' "View - superclass of JavaEmbeddedFrameView " |
1805 | 166 |
#'stx:libview2' "GIFReader - referenced by JavaVM class>>_GifImageDecoder_parseImage: " |
1815 | 167 |
#'stx:libwidg' "HorizontalScrollBar - referenced by JavaVM class>>_WScrollPanePeer__getHScrollbarHeight: " |
1812 | 168 |
#'stx:libwidg2' "ComboListView - referenced by JavaVM class>>_WChoicePeer_create: " |
752 | 169 |
) |
170 |
! ! |
|
171 |
||
962 | 172 |
!stx_libjava class methodsFor:'description - compilation'! |
173 |
||
174 |
additionalLinkLibraries_bc_dot_mak |
|
175 |
||
993 | 176 |
^ '$(ZLIB_DIR)\$(ZLIB) support\fdlibm\libfdm.lib' |
962 | 177 |
|
987 | 178 |
"Modified: / 07-09-2011 / 17:04:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 179 |
! |
180 |
||
181 |
additionalLinkLibraries_make_dot_proto |
|
182 |
||
990 | 183 |
^ '$(ZLIB_LD_ARG) support/fdlibm/libfdm.a' |
962 | 184 |
|
987 | 185 |
"Modified: / 07-09-2011 / 17:01:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 186 |
! |
187 |
||
188 |
additionalRules_bc_dot_mak |
|
189 |
^ ' |
|
190 |
$(ZLIB): |
|
191 |
cd $(ZLIB_DIR) |
|
192 |
$(MAKE) $(MAKE_ZLIB_ARG) $(ZLIB) |
|
193 |
cd ..\..\libjava |
|
194 |
||
195 |
$(BZ2LIB): |
|
196 |
cd $(BZ2LIB_DIR) |
|
197 |
$(MAKE) $(MAKE_BZ2LIB_ARG) bz2.lib |
|
198 |
cd ..\..\libjava |
|
987 | 199 |
|
993 | 200 |
support\fdlibm\libfdm.lib: |
987 | 201 |
cd support\fdlibm |
202 |
$(MAKE) -f Makefile.bcc |
|
994 | 203 |
cd ..\.. |
987 | 204 |
|
962 | 205 |
' |
206 |
||
987 | 207 |
"Modified: / 07-09-2011 / 17:04:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 208 |
! |
209 |
||
210 |
additionalRules_make_dot_proto |
|
211 |
^ ' |
|
212 |
zlib: |
|
213 |
cd $(ZLIB_DIR); $(MAKE) $(MAKE_ZLIB_ARG) |
|
214 |
||
993 | 215 |
support/fdlibm/libfdm.a: |
987 | 216 |
$(MAKE) -C support/fdlibm |
217 |
||
962 | 218 |
' |
219 |
||
987 | 220 |
"Modified: / 07-09-2011 / 17:01:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 221 |
! |
222 |
||
223 |
additionalTargets_bc_dot_mak |
|
224 |
||
993 | 225 |
^ '$(ZLIB) support\fdlibm\libfdm.lib' |
962 | 226 |
|
987 | 227 |
"Modified: / 07-09-2011 / 17:03:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 228 |
! |
229 |
||
230 |
additionalTargets_make_dot_proto |
|
231 |
||
993 | 232 |
^ ' zlib support/fdlibm/libfdm.a' |
962 | 233 |
|
234 |
"Created: / 05-09-2006 / 16:05:12 / cg" |
|
987 | 235 |
"Modified: / 07-09-2011 / 17:00:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 236 |
! |
237 |
||
238 |
localIncludes |
|
987 | 239 |
^ '-I$(ZLIB_DIR) -Isupport/fdlibm' |
962 | 240 |
|
241 |
"Created: / 06-09-2006 / 18:18:15 / cg" |
|
987 | 242 |
"Modified: / 07-09-2011 / 17:03:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1744
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
243 |
! |
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
244 |
|
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
245 |
stcOptimizationOptions |
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
246 |
^ '+optinline +optinline2' |
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
247 |
|
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
248 |
"Created: / 23-08-2006 / 11:06:17 / cg" |
962 | 249 |
! ! |
250 |
||
752 | 251 |
!stx_libjava class methodsFor:'description - contents'! |
252 |
||
253 |
classNamesAndAttributes |
|
254 |
"lists the classes which are to be included in the project. |
|
255 |
Each entry in the list may be: a single class-name (symbol), |
|
256 |
or an array-literal consisting of class name and attributes. |
|
257 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
258 |
||
259 |
^ #( |
|
260 |
"<className> or (<className> attributes...) in load order" |
|
1402 | 261 |
GroovyCompiler |
262 |
GroovyEvaluator |
|
263 |
GroovyLanguage |
|
264 |
GroovySourceFileWriter |
|
752 | 265 |
Java |
266 |
JavaAnnotation |
|
267 |
JavaAnnotationContainer |
|
268 |
JavaAnnotationDefault |
|
269 |
JavaAnnotationDictionary |
|
270 |
JavaAnnotationValue |
|
869 | 271 |
(JavaAntProjectResource autoload) |
752 | 272 |
JavaArray |
1208 | 273 |
JavaByte |
903 | 274 |
(JavaByteCodeDisassemblerTests autoload) |
752 | 275 |
JavaByteCodeProcessor |
276 |
(JavaByteCodeProcessorTests autoload) |
|
1402 | 277 |
JavaClassAccessor |
1208 | 278 |
(JavaClassLoadingTests autoload) |
903 | 279 |
(JavaClassRefTests autoload) |
1208 | 280 |
JavaClassRegistry |
1402 | 281 |
JavaClassReloader |
752 | 282 |
JavaConstantPool |
1208 | 283 |
JavaConstants |
752 | 284 |
JavaContext |
285 |
JavaDecompiler |
|
286 |
JavaDescriptor |
|
287 |
JavaError |
|
288 |
JavaExceptionTableEntry |
|
879 | 289 |
JavaField |
903 | 290 |
(JavaFieldRefTests autoload) |
1208 | 291 |
(JavaFreshlyInitializedResource autoload) |
913 | 292 |
(JavaInitializedResource autoload) |
903 | 293 |
(JavaInterfaceMethodRefTests autoload) |
752 | 294 |
(JavaJUnitTests autoload) |
295 |
JavaLanguage |
|
754 | 296 |
JavaLibraries |
756 | 297 |
(JavaLibrariesResource autoload) |
752 | 298 |
JavaLocalVariableTable |
299 |
JavaLocalVariableTableEntry |
|
1402 | 300 |
JavaLookup |
1006 | 301 |
JavaMathSupport |
903 | 302 |
(JavaMethodRefTests autoload) |
1208 | 303 |
JavaMonitor |
304 |
(JavaMonitorsTests autoload) |
|
774 | 305 |
JavaNameAndType2 |
752 | 306 |
JavaNativeMemory |
307 |
JavaObject |
|
308 |
JavaObjectDictionary |
|
894 | 309 |
JavaPackage |
752 | 310 |
JavaPopUpView |
311 |
JavaProcess |
|
774 | 312 |
JavaRef2 |
903 | 313 |
(JavaRefMock autoload) |
752 | 314 |
JavaRelease |
758 | 315 |
JavaResolver |
903 | 316 |
(JavaRuntimeConstantPoolTests autoload) |
1208 | 317 |
JavaShort |
752 | 318 |
JavaSlotIndexCache |
1208 | 319 |
JavaSocket |
752 | 320 |
JavaSourceCodeCache |
321 |
JavaSourceFileWriter |
|
322 |
JavaStartup |
|
859
56bc5e063b7d
Common code from JUnitTestCaseProxy and TestletTestCaseProxy moved to a common superclass
vranyj1
parents:
854
diff
changeset
|
323 |
(JavaTestCaseProxy autoload) |
763 | 324 |
JavaTestsLoader |
913 | 325 |
(JavaTestsResource autoload) |
752 | 326 |
JavaTopView |
327 |
(JavaUTF8Tests autoload) |
|
328 |
JavaUnresolvedConstant |
|
1402 | 329 |
JavaUtilities |
752 | 330 |
JavaView |
956
a8b9dec12b4d
Beginning of Java<->Smalltalk types boxing/unboxing
kursjan
parents:
954
diff
changeset
|
331 |
JavaZipSupport |
752 | 332 |
PPJavaNode |
1402 | 333 |
ProxyMethod |
334 |
ProxyMethodCompiler |
|
335 |
ProxyMethodNode |
|
752 | 336 |
SmalltalkAppletContext |
337 |
SmalltalkAppletStub |
|
913 | 338 |
(TestletTestCaseProxy autoload) |
752 | 339 |
#'stx_libjava' |
340 |
JavaAnnotationArrayValue |
|
341 |
JavaAnnotationClassValue |
|
342 |
JavaAnnotationEnumValue |
|
343 |
JavaAnnotationNestedAnnotationValue |
|
344 |
JavaAnnotationPrimitiveValue |
|
1208 | 345 |
JavaBehavior |
752 | 346 |
JavaByteCodeDisassembler |
347 |
JavaByteCodeEnumerator |
|
1402 | 348 |
JavaByteCodeProcessorAdapter |
752 | 349 |
JavaClassAnnotationContainer |
774 | 350 |
JavaClassContentRef2 |
1208 | 351 |
JavaClassReader |
774 | 352 |
JavaClassRef2 |
752 | 353 |
JavaEmbeddedFrameView |
354 |
JavaFieldAnnotationContainer |
|
355 |
JavaFieldDescriptor |
|
1402 | 356 |
JavaFieldDescriptorWithUnionType |
872 | 357 |
JavaInvalidRefError |
1208 | 358 |
JavaMethod |
752 | 359 |
JavaMethodAnnotationContainer |
360 |
JavaMethodDeclarationNode |
|
361 |
JavaMethodDescriptor |
|
781
d27c59bcf38a
added preResolve compatibility method + JavaStringRef - will be used soon
hlopkmar
parents:
780
diff
changeset
|
362 |
JavaStringRef2 |
752 | 363 |
JavaUnhandledExceptionError |
364 |
JavaUnresolvedClassConstant |
|
365 |
JavaUnresolvedStringConstant |
|
1208 | 366 |
JavaVM |
752 | 367 |
JavadocDeclarationNode |
1368 | 368 |
ProxyMethodConditionNode |
369 |
ProxyMethodGuardNode |
|
370 |
ProxyMethodInvocationNode |
|
1402 | 371 |
JavaByteCodePreresolver |
372 |
JavaClass |
|
373 |
JavaFieldRef2 |
|
374 |
JavaMethodRef2 |
|
375 |
JavaMethodWithException |
|
1368 | 376 |
ProxyMethodAndNode |
377 |
ProxyMethodBlockInvocationNode |
|
378 |
ProxyMethodMethodInvocationNode |
|
379 |
ProxyMethodTypeCheckNode |
|
380 |
GroovyClass |
|
1402 | 381 |
JavaInterfaceMethodRef2 |
382 |
JavaMethodWithHandler |
|
1368 | 383 |
ProxyMethodJavaMethodInvocationNode |
384 |
ProxyMethodJavaTypeCheckNode |
|
1402 | 385 |
JavaNativeMethod |
1433 | 386 |
ProxyMethodJavaFieldAccessor |
387 |
ProxyMethodJavaFieldGetter |
|
388 |
ProxyMethodJavaFieldSetter |
|
1440 | 389 |
(JavaExceptionTests autoload) |
1452
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
390 |
#'JavaCompiler_Eclipse' |
1459 | 391 |
JavaMetaclass |
392 |
GroovyMetaclass |
|
1509 | 393 |
(JavaClassReaderTests autoload) |
1515 | 394 |
(JavaRefsAndConstantPoolTestCase autoload) |
1516 | 395 |
JavaNioSupport |
1524 | 396 |
(JavaNativeMemoryTests autoload) |
1548 | 397 |
JavaFinalizationRegistry |
1557 | 398 |
JavaPathElement |
1581
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1579
diff
changeset
|
399 |
JavaMirror |
1698
d32a2a3dce36
- Some more support for non-Java extension methods.
vranyj1
parents:
1697
diff
changeset
|
400 |
JavaClassQuery |
1710
64d6be0adb8e
- JavaStringRef2 replaces itself in CP by resolved string. That will
vranyj1
parents:
1707
diff
changeset
|
401 |
(JUnitTestCaseProxy autoload) |
1755 | 402 |
(JavaLookupResolutionAlgorithmTests autoload) |
403 |
(JavaLookupTests autoload) |
|
404 |
(JavaLookupTestsResource autoload) |
|
752 | 405 |
) |
406 |
! |
|
407 |
||
408 |
extensionMethodNames |
|
409 |
"lists the extension methods which are to be included in the project. |
|
410 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
916 | 411 |
|
412 |
^ #( |
|
1402 | 413 |
Behavior isInterface |
916 | 414 |
BooleanArray isInterface |
1208 | 415 |
CharacterArray asDottedJavaClassName |
416 |
CharacterArray asInternalJavaClassName |
|
417 |
CharacterArray asJavaComponentClassName |
|
418 |
CharacterArray asJavaishClassName |
|
419 |
CharacterArray asNiceJavaClassName |
|
420 |
CharacterArray asSTXInternalJavaClassName |
|
421 |
CharacterArray asSlashedJavaClassName |
|
422 |
CharacterArray isJavaArrayDescriptor |
|
423 |
CharacterArray isJavaPrimitiveTypeDescriptor |
|
424 |
Delay waitWithState: |
|
1402 | 425 |
Object isGroovyClass |
916 | 426 |
Object isJavaArray |
427 |
Object isJavaNameAndType |
|
428 |
Object isJavaPackage |
|
429 |
Object isJavaRef |
|
1402 | 430 |
Object isJavaWrapperClass |
934 | 431 |
Object javaBox: |
1402 | 432 |
Object javaUnwrap: |
433 |
Object javaUnwrapFrom: |
|
434 |
Object javaWrap: |
|
1208 | 435 |
Process clearInterrupted |
436 |
Process isInterrupted |
|
437 |
Process isSleeping |
|
438 |
Process isWaiting |
|
439 |
Process javaInterrupt |
|
440 |
Process setInterrupted |
|
441 |
Set #'java__contains:' |
|
1402 | 442 |
SmallInteger javaUnwrapFrom: |
916 | 443 |
String asArrayOfSubstringsSeparatedBy: |
444 |
UserPreferences javaTestsDirectory |
|
445 |
UserPreferences javaTestsDirectory: |
|
1402 | 446 |
WrappedMethod descriptor |
447 |
WrappedMethod isAbstract |
|
916 | 448 |
ZipArchive nextBytes:of:startingAt:into:startingAt: |
449 |
'Boolean class' isJavaPrimitiveType |
|
450 |
'Boolean class' javaArrayClass |
|
934 | 451 |
'Boolean class' javaBox: |
916 | 452 |
'Boolean class' javaName |
1208 | 453 |
'Boolean class' javaUnbox:onError: |
1402 | 454 |
'Boolean class' javaUnwrap: |
455 |
'Boolean class' javaWrapperClass |
|
916 | 456 |
'BooleanArray class' isInterface |
457 |
'BooleanArray class' isJavaArrayClass |
|
458 |
'BooleanArray class' isJavaReferenceType |
|
1402 | 459 |
'BooleanArray class' javaArrayClass |
916 | 460 |
'BooleanArray class' javaComponentClass |
461 |
'BooleanArray class' javaName |
|
462 |
'ByteArray class' isInterface |
|
463 |
'ByteArray class' isJavaArrayClass |
|
464 |
'ByteArray class' isJavaReferenceType |
|
465 |
'ByteArray class' javaArrayClass |
|
466 |
'ByteArray class' javaComponentClass |
|
467 |
'ByteArray class' javaName |
|
468 |
'Character class' isJavaPrimitiveType |
|
469 |
'Character class' javaArrayClass |
|
934 | 470 |
'Character class' javaBox: |
916 | 471 |
'Character class' javaName |
1208 | 472 |
'Character class' javaUnbox:onError: |
1402 | 473 |
'Character class' javaWrapperClass |
916 | 474 |
'CharacterArray class' decodeFromJavaUTF8: |
475 |
'CharacterArray class' fromJavaUTF8Bytes: |
|
476 |
'CharacterArray class' isJavaArrayClass |
|
477 |
'CharacterArray class' javaArrayClass |
|
478 |
'CharacterArray class' javaComponentClass |
|
1402 | 479 |
'ConfigurableFeatures class' hasJavaSupport |
916 | 480 |
'DoubleArray class' isInterface |
481 |
'DoubleArray class' isJavaArrayClass |
|
482 |
'DoubleArray class' isJavaReferenceType |
|
1402 | 483 |
'DoubleArray class' javaArrayClass |
916 | 484 |
'DoubleArray class' javaComponentClass |
485 |
'DoubleArray class' javaName |
|
486 |
'Float class' isJavaPrimitiveType |
|
487 |
'Float class' javaArrayClass |
|
934 | 488 |
'Float class' javaBox: |
916 | 489 |
'Float class' javaName |
1402 | 490 |
'Float class' javaWrapperClass |
916 | 491 |
'FloatArray class' isInterface |
492 |
'FloatArray class' isJavaArrayClass |
|
493 |
'FloatArray class' isJavaReferenceType |
|
1402 | 494 |
'FloatArray class' javaArrayClass |
916 | 495 |
'FloatArray class' javaComponentClass |
496 |
'FloatArray class' javaName |
|
497 |
'Integer class' isJavaPrimitiveType |
|
498 |
'Integer class' javaArrayClass |
|
934 | 499 |
'Integer class' javaBox: |
916 | 500 |
'Integer class' javaName |
1208 | 501 |
'Integer class' javaUnbox:onError: |
502 |
'Integer class' javaUnbox:onError:min:max: |
|
1402 | 503 |
'Integer class' javaWrapperClass |
916 | 504 |
'LargeInteger class' isJavaPrimitiveType |
505 |
'LargeInteger class' javaArrayClass |
|
934 | 506 |
'LargeInteger class' javaBox: |
916 | 507 |
'LargeInteger class' javaName |
1208 | 508 |
'LargeInteger class' javaUnbox:onError: |
1402 | 509 |
'LargeInteger class' javaWrapperClass |
916 | 510 |
'Object class' isJavaArrayClass |
511 |
'Object class' isJavaClassType |
|
1673
b9a05759b7fd
Moved Object class>>isJavaPrimitiveType to Behavior
vranyj1
parents:
1656
diff
changeset
|
512 |
Behavior isJavaPrimitiveType |
916 | 513 |
'Object class' isJavaReferenceType |
514 |
'Object class' isJavaType |
|
1402 | 515 |
'ProjectDefinition class' javaClassPath |
516 |
'ProjectDefinition class' javaSourcePath |
|
916 | 517 |
'ShortFloat class' isJavaPrimitiveType |
518 |
'ShortFloat class' javaArrayClass |
|
934 | 519 |
'ShortFloat class' javaBox: |
916 | 520 |
'ShortFloat class' javaName |
1402 | 521 |
'ShortFloat class' javaWrapperClass |
916 | 522 |
'SignedIntegerArray class' isInterface |
523 |
'SignedIntegerArray class' isJavaArrayClass |
|
524 |
'SignedIntegerArray class' javaArrayClass |
|
525 |
'SignedIntegerArray class' javaComponentClass |
|
526 |
'SignedIntegerArray class' javaName |
|
527 |
'SignedLongIntegerArray class' isInterface |
|
528 |
'SignedLongIntegerArray class' isJavaArrayClass |
|
529 |
'SignedLongIntegerArray class' isJavaReferenceType |
|
934 | 530 |
'SignedLongIntegerArray class' javaArrayClass |
916 | 531 |
'SignedLongIntegerArray class' javaComponentClass |
532 |
'SignedLongIntegerArray class' javaName |
|
1402 | 533 |
'SignedWordArray class' isJavaArrayClass |
534 |
'SignedWordArray class' isJavaReferenceType |
|
535 |
'SignedWordArray class' javaComponentClass |
|
536 |
'SignedWordArray class' javaName |
|
916 | 537 |
'UndefinedObject class' isJavaPrimitiveType |
538 |
'UndefinedObject class' javaName |
|
539 |
'WordArray class' isInterface |
|
540 |
'WordArray class' isJavaArrayClass |
|
541 |
'WordArray class' isJavaReferenceType |
|
542 |
'WordArray class' javaArrayClass |
|
543 |
'WordArray class' javaComponentClass |
|
544 |
'WordArray class' javaName |
|
1433 | 545 |
'Boolean class' javaWrap: |
1495
e661836af8e6
Interop fixes for long and double arguments (take two slots in arg vector)
vranyj1
parents:
1469
diff
changeset
|
546 |
ProgrammingLanguage isGroovy |
e661836af8e6
Interop fixes for long and double arguments (take two slots in arg vector)
vranyj1
parents:
1469
diff
changeset
|
547 |
ProgrammingLanguage isJavaLike |
1557 | 548 |
UserPreferences javaClassPath |
549 |
UserPreferences javaClassPath: |
|
550 |
UserPreferences javaRelease |
|
551 |
UserPreferences javaReleaseSelector |
|
552 |
UserPreferences javaReleaseSelector: |
|
553 |
UserPreferences javaSourcePath |
|
554 |
UserPreferences javaSourcePath: |
|
1581
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1579
diff
changeset
|
555 |
Class javaMirror |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1579
diff
changeset
|
556 |
Class javaMirrorClass |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1579
diff
changeset
|
557 |
ExecutableFunction isJavaConstructor |
1589 | 558 |
UserPreferences javaClassPathDecoded |
559 |
UserPreferences javaSourcePathDecoded |
|
1615 | 560 |
Process isParked |
561 |
Semaphore parkWithTimeoutMs: |
|
1617 | 562 |
Object isSocket |
563 |
Socket isSocket |
|
564 |
Socket reOpenIfPossible |
|
1648 | 565 |
Method isStatic |
1649
0af82006c0b2
- some more support for calling Smalltalk from Groovy. Crashes VM now :-)
vranyj1
parents:
1648
diff
changeset
|
566 |
Class classLoader |
0af82006c0b2
- some more support for calling Smalltalk from Groovy. Crashes VM now :-)
vranyj1
parents:
1648
diff
changeset
|
567 |
Method isAbstract |
0af82006c0b2
- some more support for calling Smalltalk from Groovy. Crashes VM now :-)
vranyj1
parents:
1648
diff
changeset
|
568 |
Method javaClass |
1656
c6fee8f3a640
- fixes for Groovy-Smalltalk interop - SmalltalkEvaluator example works
vranyj1
parents:
1649
diff
changeset
|
569 |
Class lookupMethodByNameAndType: |
1691 | 570 |
Object getJavaLockWord |
571 |
Object getJavaMonitor |
|
1807 | 572 |
Object javaWrapRequired |
1812 | 573 |
'java/lang/Byte class' javaWrap: |
574 |
'java/lang/Byte class' javaWrapRequired |
|
575 |
'java/lang/Double class' javaWrap: |
|
576 |
'java/lang/Double class' javaWrapRequired |
|
577 |
'java/lang/Float class' javaWrap: |
|
578 |
'java/lang/Float class' javaWrapRequired |
|
579 |
'java/lang/Integer class' javaWrap: |
|
580 |
'java/lang/Integer class' javaWrapRequired |
|
581 |
'java/lang/Long class' javaWrap: |
|
582 |
'java/lang/Long class' javaWrapRequired |
|
583 |
'java/lang/Short class' javaWrap: |
|
584 |
'java/lang/Short class' javaWrapRequired |
|
585 |
'java/lang/String class' javaWrap: |
|
586 |
'java/lang/String class' javaWrapRequired |
|
916 | 587 |
) |
752 | 588 |
! ! |
589 |
||
1371 | 590 |
!stx_libjava class methodsFor:'description - java'! |
591 |
||
592 |
javaClassPath |
|
593 |
||
594 |
<javaclasspath> |
|
595 |
||
596 |
^{ |
|
597 |
self packageDirectory / 'java' / 'bin' . |
|
598 |
self packageDirectory / 'java' / 'libs' / '*.jar' |
|
599 |
} |
|
600 |
||
601 |
"Created: / 17-11-2011 / 23:00:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
602 |
! |
|
603 |
||
604 |
javaSourcePath |
|
605 |
||
606 |
<javasourcepath> |
|
607 |
||
608 |
^{ |
|
609 |
self packageDirectory / 'java' / 'src' . |
|
610 |
self packageDirectory / 'java' / 'libs-src' / '*.jar' . |
|
611 |
} |
|
612 |
||
613 |
"Created: / 17-11-2011 / 23:01:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
614 |
! ! |
|
1276
5a302466ecb8
Default class path hanling changed, now each Smalltalk/X package can define its own class path, that is included initial class path
vranyj1
parents:
1275
diff
changeset
|
615 |
|
752 | 616 |
!stx_libjava class methodsFor:'description - project information'! |
617 |
||
1007 | 618 |
applicationIconFileName |
619 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
752 | 620 |
|
621 |
^ nil |
|
622 |
"/ ^ self applicationName |
|
623 |
! |
|
624 |
||
1007 | 625 |
companyName |
626 |
"Return a companyname which will appear in <lib>.rc" |
|
752 | 627 |
|
628 |
^ 'eXept Software AG' |
|
629 |
! |
|
630 |
||
1007 | 631 |
description |
632 |
"Description string which will appear in vc.def / bc.def" |
|
752 | 633 |
|
634 |
^ 'Smalltalk/X Class library' |
|
635 |
! |
|
636 |
||
1007 | 637 |
legalCopyright |
638 |
"Copyright string which will appear in <lib>.rc" |
|
752 | 639 |
|
877 | 640 |
^ 'Copyright Claus Gittinger 1988-2011\nCopyright eXept Software AG 1998-2011\nCopyright Jan Vrany, Jan Kurs and Marcel Hlopko\b SWING Research Group, Czech Technical University In Prague' |
641 |
||
642 |
"Modified: / 26-07-2011 / 17:13:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
752 | 643 |
! |
644 |
||
1007 | 645 |
productName |
646 |
"Return product name which will appear in <lib>.rc" |
|
752 | 647 |
|
648 |
^ 'Smalltalk/X' |
|
649 |
! ! |
|
650 |
||
651 |
!stx_libjava class methodsFor:'description - svn'! |
|
652 |
||
1007 | 653 |
svnRepositoryUrlString |
1437 | 654 |
"Return a SVN repository URL of myself. |
754 | 655 |
(Generated since 2011-04-08) |
1437 | 656 |
Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!! |
754 | 657 |
" |
658 |
||
1437 | 659 |
^ '$URL:: $' |
754 | 660 |
! |
661 |
||
752 | 662 |
svnRevisionNr |
663 |
"Return a SVN revision number of myself. |
|
664 |
This number is updated after a commit" |
|
665 |
||
1765 | 666 |
^ "$SVN-Revision:"'2140 '"$" |
752 | 667 |
! ! |
668 |
||
669 |
!stx_libjava class methodsFor:'file generation'! |
|
670 |
||
1007 | 671 |
basicFileNamesToGenerat |
672 |
"answer a dictionary (filename -> generator method) with all the files, that have to be generated for this |
|
752 | 673 |
package" |
674 |
||
675 |
|dict| |
|
676 |
||
677 |
dict := super basicFileNamesToGenerate. |
|
678 |
||
679 |
dict |
|
680 |
at:'builder/package.deps.rake' put: #'generate_package_dot_deps_dot_rake'. |
|
681 |
||
682 |
^ dict. |
|
683 |
||
684 |
"Created: / 11-03-2011 / 09:32:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
685 |
! ! |
|
686 |
||
687 |
!stx_libjava class methodsFor:'documentation'! |
|
688 |
||
689 |
version_SVN |
|
690 |
^ '$Id$' |
|
691 |
! ! |