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