Re: RFE simplify usage of patched module [by Robert Scholte, from jdk-dev]

2020-02-04 Thread Simone Bordet
criptor is evident. What if patched module descriptors are only effective when a command line option is present, say "--allow-patch-descriptors", or something like that? Thanks! -- Simone Bordet --- Finally, no matter how good the architecture and design are, to deliver bug-free softw

Re: RFE simplify usage of patched module [by Robert Scholte, from jdk-dev]

2020-02-04 Thread Simone Bordet
ith a legit module-info.class java --module-path jetty-client.jar:library.jar:app.jar --module app/com.app.Main With this command line, does the Java runtime parse and enable the patched descriptor contained in library.jar, opening up jetty-client? If not, how would you enable it in Maven? Am I missing

Re: missing resources when using --patch-module

2020-04-03 Thread Simone Bordet
return Optional.of(uri); } else { return delegate().find(name); } where delegate() returns the non-patched part of the module. So it either returns one, or the other. While debugging, I set r=null to see what the delegate would find, and it does find /E:/test-classpath-demo-master/target/clas

MethodHandles.publicLookup().in() returns Lookup with no permissions?

2020-11-24 Thread Simone Bordet
s get a MethodHandle on itself. I tested this with 11, 15, and 16+25, all fail. I have a simple reproducer, and I can open an OpenJDK bug. Thanks! -- Simone Bordet --- Finally, no matter how good the architecture and design are, to deliver bug-free software with optimal performance and reliability

Re: MethodHandles.publicLookup().in() returns Lookup with no permissions?

2020-11-24 Thread Simone Bordet
Hi, On Tue, Nov 24, 2020 at 7:35 PM Alan Bateman wrote: > On 24/11/2020 18:21, Simone Bordet wrote: > > Hi, > > > > testing the Jetty MethodHandle usages we encountered this situation: > > > > .class org.openjdk.mh.Main > > > > Class klass