Fixes and (void) natives for shared-memory JDI transport.
This transport is present only in Sun/Oracle JDKs.
--- a/JavaNativeMethodImpl_SunJDK6.st Wed Nov 13 11:13:40 2013 +0000
+++ b/JavaNativeMethodImpl_SunJDK6.st Thu Nov 14 14:50:25 2013 -0800
@@ -34,6 +34,52 @@
"
! !
+!JavaNativeMethodImpl_SunJDK6 class methodsFor:'native - com.sun.tools.jdi'!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_accept0: this _: a1 _: a2 _: a3 _: a4
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'accept0(JJ)J'>
+
+ ^ JavaVM unimplementedNativeMethodSignal raise
+!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_attach0: this _: a1 _: a2 _: a3
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'attach0(Ljava/lang/String;J)J'>
+
+ ^ JavaVM unimplementedNativeMethodSignal raise
+!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_initialize: this
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'initialize()V'>
+
+ "Nothing to do"
+
+ "Modified: / 14-11-2013 / 14:27:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_name: this _: a1 _: a2
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'name(J)Ljava/lang/String;'>
+
+ ^ JavaVM unimplementedNativeMethodSignal raise
+!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_startListening0: this _: a1
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'startListening0(Ljava/lang/String;)J'>
+
+ ^ JavaVM unimplementedNativeMethodSignal raise
+!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_stopListening0: this _: a1 _: a2
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'stopListening0(J)V'>
+
+ ^ JavaVM unimplementedNativeMethodSignal raise
+! !
+
!JavaNativeMethodImpl_SunJDK6 class methodsFor:'native - java.io'!
_java_io_Win32FileSystem_canonicalize0: this _: a1
--- a/JavaNativeMethodImpl_SunJDK7.st Wed Nov 13 11:13:40 2013 +0000
+++ b/JavaNativeMethodImpl_SunJDK7.st Thu Nov 14 14:50:25 2013 -0800
@@ -53,6 +53,52 @@
"
! !
+!JavaNativeMethodImpl_SunJDK7 class methodsFor:'native - com.sun.tools.jdi'!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_accept0: this _: a1 _: a2 _: a3 _: a4
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'accept0(JJ)J'>
+
+ ^ JavaVM unimplementedNativeMethodSignal raise
+!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_attach0: this _: a1 _: a2 _: a3
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'attach0(Ljava/lang/String;J)J'>
+
+ ^ JavaVM unimplementedNativeMethodSignal raise
+!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_initialize: this
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'initialize()V'>
+
+ "Nothing to do"
+
+ "Modified: / 14-11-2013 / 14:27:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_name: this _: a1 _: a2
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'name(J)Ljava/lang/String;'>
+
+ ^ JavaVM unimplementedNativeMethodSignal raise
+!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_startListening0: this _: a1
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'startListening0(Ljava/lang/String;)J'>
+
+ ^ JavaVM unimplementedNativeMethodSignal raise
+!
+
+_com_sun_tools_jdi_SharedMemoryTransportService_stopListening0: this _: a1 _: a2
+
+ <javanative: 'com/sun/tools/jdi/SharedMemoryTransportService' name: 'stopListening0(J)V'>
+
+ ^ JavaVM unimplementedNativeMethodSignal raise
+! !
+
!JavaNativeMethodImpl_SunJDK7 class methodsFor:'documentation'!
version_CVS
--- a/JavaRelease.st Wed Nov 13 11:13:40 2013 +0000
+++ b/JavaRelease.st Thu Nov 14 14:50:25 2013 -0800
@@ -1661,18 +1661,18 @@
homeFromRegistry = home ifTrue:[ ^ true ].
"JDK..."
- (f := home / 'LICENSE') exists ifTrue:[
+ (f := home asFilename / 'LICENSE') exists ifTrue:[
f readingFileDo:[:s|
((s nextLine = 'Please refer to http://java.com/license')
- and:[(home / 'release') exists not
- and:[(home / 'THIRDPARTYLICENSEREADME-JAVAFX.txt') exists not]]) ifTrue:[ ^ true ]
+ and:[(home asFilename / 'release') exists not
+ and:[(home asFilename / 'THIRDPARTYLICENSEREADME-JAVAFX.txt') exists not]]) ifTrue:[ ^ true ]
].
].
"JRE..."
- (f := home / 'COPYRIGHT') exists ifTrue:[
+ (f := home asFilename / 'COPYRIGHT') exists ifTrue:[
f readingFileDo:[:s|
(s nextLine includesString: 'Oracle') ifTrue:[
- ^(home / 'LICENSE.txt') exists
+ ^(home asFilename / 'LICENSE.txt') exists
]
].
].
@@ -1689,7 +1689,7 @@
"
"Created: / 12-02-2013 / 02:52:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
- "Modified: / 16-02-2013 / 02:54:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 14-11-2013 / 14:30:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
validateJavaVersionString:aVersionString
--- a/JavaVM.st Wed Nov 13 11:13:40 2013 +0000
+++ b/JavaVM.st Thu Nov 14 14:50:25 2013 -0800
@@ -1726,6 +1726,7 @@
'management.dll' "/ Management Beans - req'd by Tomcat
'fontmanager.dll' "/ req'd by java.text.Bidi
'j2pkcs11.dll' "/ req'd by Smack and some crypto stuff
+ 'dt_shmem.dll' "/ req'd by JDI on Windows / Oracle JDK 7
).
^ self.
].
@@ -1737,7 +1738,7 @@
"Modified: / 27-01-1998 / 18:43:10 / cg"
"Modified: / 03-11-2011 / 19:00:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
"Modified: / 21-12-2011 / 23:03:35 / jv"
- "Modified: / 22-09-2013 / 12:26:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 14-11-2013 / 14:26:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
initializeSimulatedNativeMemory