Questions tagged [jep]

JEPs (Java Enhancement Proposals) are official efforts to expand the JDK by introducing nontrivial changes to the code-base. These are well formatted feature design documents recorded by the openJDK community.

27 questions
44
votes
1 answer

JEP 295 AOT: Objects compiled multiple times

I am trying to compile an application server with JDK9's new AOT feature, and am facing a number of challenges. The appserver consists of ~180 MB jars; compiling that together overflows integer so I've tried to compile each module to one (.so)…
Radim Vansa
  • 5,686
  • 2
  • 25
  • 40
41
votes
1 answer

What is the difference (or relation) between JLS, JSR and JEP?

JLS - Java Language Specification JSR - Java Specification Requests.The formal documents that describe proposed specifications and technologies for adding to the Java platform. JEP - JDK Enhancement Proposal What is the difference (or relation)…
Kanad
  • 1,008
  • 1
  • 11
  • 14
10
votes
2 answers

Lambda expressions and anonymous classes don't work when loaded as hidden classes

I am trying to compile and load dynamically generated Java code during runtime. Since both ClassLoader::defineClass and Unsafe::defineAnonymousClass have serious drawbacks in this scenario, I tried using hidden classes via Lookup::defineHiddenClass…
Duff
  • 195
  • 9
10
votes
1 answer

Incubator Module vs. Preview Feature in Java

JEP 11: Incubator Modules: Summary Incubator modules are a means of putting non-final APIs and non-final tools in the hands of developers, while the APIs/tools progress towards either finalization or removal in a future release. Goals Enable JDK…
Giorgi Tsiklauri
  • 9,715
  • 8
  • 45
  • 66
5
votes
1 answer

Java 10 Panama Project - port JNI solutions to Panama

I have been reading about the Panama Project recently. I understand that it will be the next generation replacement to JNI - it will allow java developers to code on the native layer using Java (which is amazing IMHO). The usage is simple from what…
Rann Lifshitz
  • 4,040
  • 4
  • 22
  • 42
4
votes
1 answer

In what scenarios should I use JEP334 (JVM Constants API)

I'm learning Java 17, and with JEP334 (JVM Constants API), I know how to get ClassDesc, MethodTypeDesc, MethodHandleDesc, DynamicConstantDesc. But what can these objects do? In what application scenarios do I need these objects?
musan
  • 51
  • 6
4
votes
1 answer

How to give feedback for proposed Java language features?

Java language evolution has switched into a new gear. Java is being released every 6 months, with "preview" features that let everyone test and, supposedly, give feedback on new language ideas. However, I cannot find how to actually give that…
Aleksandr Dubinsky
  • 22,436
  • 15
  • 82
  • 99
4
votes
1 answer

java.lang.UnsatisfiedLinkError: jep.Jep.init(Ljava/lang/ClassLoader;ZZ) on google cloud dataproc

Firstly I don't understand why people put negative score on this question. Either explain how can I improve question. I can further elaborate. This is a feedback form my side. Though I am new but I have no intention to ask question without putting…
4
votes
1 answer

Is there a meaningful way of collecting feedback for a JSR/JEP before entering it as a proposal?

I intend to launch a JEP/JSR to introduce an alternative access operator into the Java Language Specification. I've worked out how the proposal could look like, and now I want to collect feedback on said proposal (for example, if I am the 999th…
TreffnonX
  • 2,924
  • 15
  • 23
3
votes
1 answer

Does pattern matched switch need to be always exhaustive in Java?

JEP 406 states: A pattern variable introduced by a switch label is definitely matched in the associated switch rule expression, switch rule block or switch rule throw statement. Does this mean pattern matched switch needs to be compulsorily…
lineage
  • 792
  • 1
  • 8
  • 20
3
votes
1 answer

Any intention of overhauling existing Java platform classes (JEP 360)?

Brian Goetz mentioned in a recent article on InfoQ that making String final caused problems: A good example where we pay for this tension is String; it is critical to the security of the platform that strings be immutable, and therefore String…
Justin Albano
  • 3,809
  • 2
  • 24
  • 51
2
votes
2 answers

Pass dataframe from scala to python using JEP

Here is what I am trying to do: I read the data into scala Extract few columns Using JEP pass the created dataframe to Python script Python script converts dataframe to pandas performs some operation and returns it back However I am not sure how…
Rookie111
  • 53
  • 6
1
vote
0 answers

Why doesn't Project Valhalla introduce mutable structs?

Looks to me like primitive classes could behave more efficiently (at reasonable sizes) if they weren't immutable as currently proposed, but worked more like C structs. Given this primitive class primitive class Point implements Shape { public…
1
vote
1 answer

JDK-18 Foreign Functions : How to upCall non-static functions?

I've been playing around with the jdk.incubator.foreign stuff in JDK-18. It's pretty nice. WAY faster than JNI. An order of magnitude faster. The foreign memory stuff is better (and maybe slightly faster) than the UNSAFE stuff. Can't wait for this…
West_JR
  • 372
  • 2
  • 11
1
vote
0 answers

Using JDK15's JEP 378 text blocks in Tomcat JSP pages

Sample code: String s = """ test """; %> Getting. org.apache.jasper.compiler.JDTCompiler.generateClass Unsupported target VM [15] requested, using [13] /usr/local/tomcat/bin/version.sh reports: Server version: Apache Tomcat/9.0.38 JVM Version: …
retep
  • 61
  • 1
  • 5
1
2