Java JEP draft: Code reflection (Incubator)
openjdk.org·2h·
Discuss: r/programming
🦀Rust
Preview
Report Post

Summary

Enhance core reflection with a standard API to model Java code, build and transform models of Java code, and access models of Java code in methods and lambda expressions. Libraries can use this API to analyze Java code and extend its reach, such as executing it as code on GPUs. This is an incubating API.

Goals

  1. Enable Java developers to interface with non-Java (foreign) programming models using familiar Java language constructs, such as lambda expressions and static typing.
  2. Encourage libraries to expose novel programming models to Java developers without requiring developers to embed non-Java code inside Java code, or to write tedious Java code that builds data structures to model Java code or other (foreign) code.
  3. Enabl…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help