Skip to content

Instantly share code, notes, and snippets.

KUBOTA Yuji ykubota

  • Japan
View GitHub Profile
import com.sun.naming.internal.ResourceManager;
public class SecurityModule extends SecurityManager {
public void checkPackageAccess(String pkg) {
public void checkPackageDefinition(String pkg) {
ykubota /
Last active Dec 19, 2018
Java 11による変更点。

Java 11: 利用や動作に影響を与える変更点

Java 10はこちら

なお、本資料に記載しているものの一部は実機確認してないので、お使いのコードを修正する前に動作確認してください :)

ykubota /
Last active Dec 14, 2018
Java 10による変更点。[Java 女子部]( と [JJUG Night Seminar]( で利用

Java 10: 利用や動作に影響を与える変更点

なお、本資料に記載しているものの一部は実機確認してないので、お使いのコードを修正する前に動作確認してください :)


View compile.log
An exception has occurred in the compiler (11-internal). Please file a bug against the Java compiler via the Java bug reporting page ( after checking the Bug Database ( for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: Unexpected intersection type: java.lang.Object&<? extends java.lang.Object&<?>>
at jdk.compiler/
at jdk.compiler/$CWSignatureGenerator.classReference(
at jdk.compiler/$SignatureGenerator.assembleClassSig(
at jdk.compiler/$SignatureGenerator.assembleSig(
at jdk.compiler/$CWSignatureGenerator.assembleSig(ClassWriter
ykubota / Java 10の変更点(JEP).md
Last active Mar 7, 2019
Java 10の変更点(JEP観点)非互換性観点は別記。
View Java 10の変更点(JEP).md
ykubota / gcc version
Created Jul 24, 2017
__cplusplus on RHEL 7.
View gcc version
gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl= --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
View gdb-2763.log
#0 0x00007f47efbb21d7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f47efbb38c8 in __GI_abort () at abort.c:90
#2 0x00007f47ef4e5c89 in os::abort (dump_core=<optimized out>)
at /usr/src/debug/java-1.8.0-openjdk-
#3 0x00007f47ef6876d6 in VMError::report_and_die (this=this@entry=0x7f47d6749da0)
at /usr/src/debug/java-1.8.0-openjdk-
#4 0x00007f47ef687d97 in crash_handler (sig=11, info=0x7f47d6749ff0, ucVoid=0x7f47d6749ec0)
at /usr/src/debug/java-1.8.0-openjdk-
#5 <signal handler called>
#6 os::is_first_C_frame (fr=fr@entry=0x7f47d674aaa0)
View core.2832 (bt)
(gdb) bt
#0 0x00007f523e4741d7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f523e4758c8 in __GI_abort () at abort.c:90
#2 0x00007f523dda7c89 in os::abort (dump_core=<optimized out>)
at /usr/src/debug/java-1.8.0-openjdk-
#3 0x00007f523df496d6 in VMError::report_and_die (this=this@entry=0x7f51f31f5150)
at /usr/src/debug/java-1.8.0-openjdk-
#4 0x00007f523ddb1347 in JVM_handle_linux_signal (sig=11, info=0x7f51f31f53f0, ucVoid=0x7f51f31f52c0,
abort_if_unrecognized=<optimized out>)
at /usr/src/debug/java-1.8.0-openjdk-
ykubota / sample.gdb
Created Jul 26, 2016
check address of counter and its member
View sample.gdb
set logging on
set logging file /path/to/file
f 7
p/x counter
p/x counter->objData
p/x (TObjectData *)counter->objData
p/x counter->objData->klassOop
ykubota /
Last active Apr 1, 2016
Get specified jdk8 version sources from openjdk repository


bash jdk8u77

Note: This script does not validate the input.

You can’t perform that action at this time.