233 || Pattern.matches(
234 "jdk/internal/org/objectweb/asm/util/Check" + member + "Adapter(\\$.*)?", internalName);
235 }
236
237 static void checkIsPreview(final InputStream classInputStream) {
238 if (classInputStream == null) {
239 throw new IllegalStateException("Bytecode not available, can't check class version");
240 }
241 int minorVersion;
242 try (DataInputStream callerClassStream = new DataInputStream(classInputStream); ) {
243 callerClassStream.readInt();
244 minorVersion = callerClassStream.readUnsignedShort();
245 } catch (IOException ioe) {
246 throw new IllegalStateException("I/O error, can't check class version", ioe);
247 }
248 if (minorVersion != 0xFFFF) {
249 throw new IllegalStateException(
250 "ASM9_EXPERIMENTAL can only be used by classes compiled with --enable-preview");
251 }
252 }
253 }
254
|
233 || Pattern.matches(
234 "jdk/internal/org/objectweb/asm/util/Check" + member + "Adapter(\\$.*)?", internalName);
235 }
236
237 static void checkIsPreview(final InputStream classInputStream) {
238 if (classInputStream == null) {
239 throw new IllegalStateException("Bytecode not available, can't check class version");
240 }
241 int minorVersion;
242 try (DataInputStream callerClassStream = new DataInputStream(classInputStream); ) {
243 callerClassStream.readInt();
244 minorVersion = callerClassStream.readUnsignedShort();
245 } catch (IOException ioe) {
246 throw new IllegalStateException("I/O error, can't check class version", ioe);
247 }
248 if (minorVersion != 0xFFFF) {
249 throw new IllegalStateException(
250 "ASM9_EXPERIMENTAL can only be used by classes compiled with --enable-preview");
251 }
252 }
253 }
|