Dynamic metamodel doesn't support resources
See original GitHub issueWith the new dynamic metamodel trying to get a reference to a resource like this:
Module mod = `module`;
assert (exists resource = mod.resourceByPath("test.txt"));
While running with java -cp 'ceylon classpath hello/1.0.0' hello.run_
results in the following error:
Exception in thread "main" java.lang.NullPointerException
at com.redhat.ceylon.compiler.java.runtime.metamodel.decl.ModuleImpl.resourceByPath(ModuleImpl.java:166)
at hello.restestRelative_.restestRelative(hello.ceylon:30)
at hello.run_.run(hello.ceylon:36)
at hello.run_.main(hello.ceylon)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Static metamodel class is not generated - Stack Overflow
I change a service class from implemented service to service so the implementation class was still existing, i erase that file an everything ......
Read more >Create type-safe queries with the JPA static metamodel
The static metamodel classes provide a type-safe way to create criteria queries and dynamic entity graphs.
Read more >Using the Metamodel API to Model Entity Classes
Obtaining the metamodel classes dynamically, by calling Root<T>.getModel or EntityManager.getMetamodel and then the entity method, doesn't allow for ...
Read more >Dynamic Metamodel Extension Modules to Support Adaptive ...
We define dynamic metamodel extension modules that support adaptive data management by evolving a system in the event of changing requirements and show....
Read more >Dynamic, typesafe queries in JPA 2.0 - IBM Developer
This article describes how to write dynamic, typesafe queries using the Criteria API and the closely associated Metamodel API.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed.
Excellent.