René's URL Explorer Experiment


Title: fix(runtime): generate named Java proxies at runtime when not precompiled by NathanWalker · Pull Request #2016 · NativeScript/android · GitHub

Open Graph Title: fix(runtime): generate named Java proxies at runtime when not precompiled by NathanWalker · Pull Request #2016 · NativeScript/android

X Title: fix(runtime): generate named Java proxies at runtime when not precompiled by NathanWalker · Pull Request #2016 · NativeScript/android

Description: Named proxies — Base.extend('a.b.C', {...}) and @javaproxy('a.b.C') — only existed if the static binding generator had compiled them ahead of time: ClassResolver routed com.tns.gen* names through DexFactory and threw for everything else. SBG scans only assets/app, so a dev server that keeps @nativescript/core off disk (Vite HMR serves it over HTTP) lost every named proxy in core and crashed at boot with LookedUpClassNotFound: Class "com.tns.FragmentClass" not found. ClassResolver: on LookedUpClassNotFound, fall through to DexFactory and generate the proxy dex at runtime — classes and interfaces alike. Logs a warning per class so SBG coverage gaps stay visible. DexFactory: tell named proxies apart from anonymous bindings so a dotted interface implementation keeps its requested name instead of the derived com.tns.gen one. Core's two @JavaProxy proxies implement ActivityLifecycleCallbacks and ComponentCallbacks2 — both interfaces. ProxyGenerator: thumb-suffix dotted proxy file names. Unsuffixed files never matched getDexFile's probe (regenerated every launch), never matched purgeDexesByThumb, and jarFile.exists() reused their stale .jar across app versions. ModuleInternal: anchor relative runModule paths to the app root in the ES module branch, as the require branch always has. A generated binding's @JavaScriptImplementation carries ./bundle.mjs — an app-root-relative module name by SBG convention — but the ESM branch stats it as a filesystem path from the process cwd (after the registry-key canonicalizer folds the ./ away), so it failed as "Cannot find module bundle.mjs". Manifest-referenced classes (com.tns.NativeScriptActivity) resolve through this path because the generated dex is injected into the app class loader during entry evaluation — which the boot backstop holds until settled — before the framework instantiates the activity. A precompiled class is still the sturdier answer where a build step can provide one; this makes the missing-class case survivable instead of fatal.

Open Graph Description: Named proxies — Base.extend('a.b.C', {...}) and @javaproxy('a.b.C') — only existed if the static binding generator had compiled them ahead of time: ClassResolver routed com.tns.gen*...

X Description: Named proxies — Base.extend('a.b.C', {...}) and @javaproxy('a.b.C') — only existed if the static binding generator had compiled them ahead of time: ClassResolver rou...

Opengraph URL: https://github.com/NativeScript/android/pull/2016

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:19cd18cb-3f0e-e78b-0403-8a7f471ee8cc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB264:3F8AB1:1A07F46:212205A:6B0133A8
html-safe-nonceb26f386a03b725807fbd58717ef0b5c34e302df27ea445c7706421fdda4938bc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjY0OjNGOEFCMToxQTA3RjQ2OjIxMjIwNUE6NkIwMTMzQTgiLCJ2aXNpdG9yX2lkIjoiNDY5NjE1NTc2MDUwODM1MTQwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2d9050bca41f82e376f9c495e6cd6037926eb1b993d724b924dbde2d7f398e90
hovercard-subject-tagpull_request:4318724789
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/android/pull/2016/files
twitter:imagehttps://avatars.githubusercontent.com/u/457187?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/457187?s=400&v=4
og:image:altNamed proxies — Base.extend('a.b.C', {...}) and @javaproxy('a.b.C') — only existed if the static binding generator had compiled them ahead of time: ClassResolver routed com.tns.gen*...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/android/pull/2016/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F2016%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F2016%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/pull/2016/files
Reloadhttps://github.com/NativeScript/android/pull/2016/files
Reloadhttps://github.com/NativeScript/android/pull/2016/files
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues106 (106)https://github.com/NativeScript/android/issues
Pull requests24 (24)https://github.com/NativeScript/android/pulls
Actionshttps://github.com/NativeScript/android/actions
Projectshttps://github.com/NativeScript/android/projects
Wikihttps://github.com/NativeScript/android/wiki
Security and qualityhttps://github.com/NativeScript/android/security
Insightshttps://github.com/NativeScript/android/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
NathanWalkerhttps://github.com/NathanWalker
feat/hmr-dev-sessionshttps://github.com/NativeScript/android/tree/feat/hmr-dev-sessions
feat/hmr-dev-sessions-javaproxy-handlinghttps://github.com/NativeScript/android/tree/feat/hmr-dev-sessions-javaproxy-handling
Conversation 2 https://github.com/NativeScript/android/pull/2016
Commits 4 https://github.com/NativeScript/android/pull/2016/commits
Checks 3 https://github.com/NativeScript/android/pull/2016/checks
Files changed https://github.com/NativeScript/android/pull/2016/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2016/files
fix(runtime): generate named Java proxies at runtime when not precompiled https://github.com/NativeScript/android/pull/2016/files#top
Show all changes 4 commits https://github.com/NativeScript/android/pull/2016/files
e49ac46 fix(runtime): generate named Java proxies at runtime when not precomp… NathanWalker Aug 20, 2026 https://github.com/NativeScript/android/pull/2016/commits/e49ac46267e13b4ab9fd54b8467c4da45a63f660
40dde17 chore: comment clarity NathanWalker Aug 20, 2026 https://github.com/NativeScript/android/pull/2016/commits/40dde17955d4762b031d4ce07607e419e6e408f7
d3bbd46 fix(runtime): resolve entry-module paths in Java before crossing JNI edusperoni Aug 20, 2026 https://github.com/NativeScript/android/pull/2016/commits/d3bbd46b300eeecdb1dde5efa66b943f83b786d5
8eb0b86 fix(runtime): content-keyed proxy dex cache; keep the not-found error… edusperoni Aug 20, 2026 https://github.com/NativeScript/android/pull/2016/commits/8eb0b8682c6026a39187ecf15dc08b67958995f6
Clear filters https://github.com/NativeScript/android/pull/2016/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2016/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2016/files
ProxyGenerator.java https://github.com/NativeScript/android/pull/2016/files#diff-e50dd18fd2c198c83759c85542cfc8ac628bd5b73f73484b4fd99c1e95a435ca
ClassResolver.java https://github.com/NativeScript/android/pull/2016/files#diff-a03c6b27202904e7ea193baccbb06cac1dda824f8ccc45f501eb7289817f3299
DexFactory.java https://github.com/NativeScript/android/pull/2016/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
Module.java https://github.com/NativeScript/android/pull/2016/files#diff-0ede6e452d1c5f81e5f1abfb44af84b9d4eb3f44c2e7bb532bdff6aca00e2b5f
Runtime.java https://github.com/NativeScript/android/pull/2016/files#diff-cf9bb4e9ca1a476cacd6e270fc8bcd12c71f89d52d272915bc99df57b3581f59
package-lock.json https://github.com/NativeScript/android/pull/2016/files#diff-eb3215e4b5525082511f5614b97a11f5494c8272275b95e7d90dd30eedc8d939
test-app/runtime-binding-generator/src/main/java/com/tns/bindings/ProxyGenerator.javahttps://github.com/NativeScript/android/pull/2016/files#diff-e50dd18fd2c198c83759c85542cfc8ac628bd5b73f73484b4fd99c1e95a435ca
View file https://github.com/NativeScript/android/blob/8eb0b8682c6026a39187ecf15dc08b67958995f6/test-app/runtime-binding-generator/src/main/java/com/tns/bindings/ProxyGenerator.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2016/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2016/files#diff-e50dd18fd2c198c83759c85542cfc8ac628bd5b73f73484b4fd99c1e95a435ca
https://github.com/NativeScript/android/pull/2016/files#diff-e50dd18fd2c198c83759c85542cfc8ac628bd5b73f73484b4fd99c1e95a435ca
https://github.com/NativeScript/android/pull/2016/files#diff-e50dd18fd2c198c83759c85542cfc8ac628bd5b73f73484b4fd99c1e95a435ca
https://github.com/NativeScript/android/pull/2016/files#diff-e50dd18fd2c198c83759c85542cfc8ac628bd5b73f73484b4fd99c1e95a435ca
test-app/runtime/src/main/java/com/tns/ClassResolver.javahttps://github.com/NativeScript/android/pull/2016/files#diff-a03c6b27202904e7ea193baccbb06cac1dda824f8ccc45f501eb7289817f3299
View file https://github.com/NativeScript/android/blob/8eb0b8682c6026a39187ecf15dc08b67958995f6/test-app/runtime/src/main/java/com/tns/ClassResolver.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2016/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2016/files#diff-a03c6b27202904e7ea193baccbb06cac1dda824f8ccc45f501eb7289817f3299
https://github.com/NativeScript/android/pull/2016/files#diff-a03c6b27202904e7ea193baccbb06cac1dda824f8ccc45f501eb7289817f3299
test-app/runtime/src/main/java/com/tns/DexFactory.javahttps://github.com/NativeScript/android/pull/2016/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
View file https://github.com/NativeScript/android/blob/8eb0b8682c6026a39187ecf15dc08b67958995f6/test-app/runtime/src/main/java/com/tns/DexFactory.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2016/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2016/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
https://github.com/NativeScript/android/pull/2016/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
https://github.com/NativeScript/android/pull/2016/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
https://github.com/NativeScript/android/pull/2016/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
https://github.com/NativeScript/android/pull/2016/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
https://github.com/NativeScript/android/pull/2016/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
test-app/runtime/src/main/java/com/tns/Module.javahttps://github.com/NativeScript/android/pull/2016/files#diff-0ede6e452d1c5f81e5f1abfb44af84b9d4eb3f44c2e7bb532bdff6aca00e2b5f
View file https://github.com/NativeScript/android/blob/8eb0b8682c6026a39187ecf15dc08b67958995f6/test-app/runtime/src/main/java/com/tns/Module.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2016/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2016/files#diff-0ede6e452d1c5f81e5f1abfb44af84b9d4eb3f44c2e7bb532bdff6aca00e2b5f
https://github.com/NativeScript/android/pull/2016/files#diff-0ede6e452d1c5f81e5f1abfb44af84b9d4eb3f44c2e7bb532bdff6aca00e2b5f
test-app/runtime/src/main/java/com/tns/Runtime.javahttps://github.com/NativeScript/android/pull/2016/files#diff-cf9bb4e9ca1a476cacd6e270fc8bcd12c71f89d52d272915bc99df57b3581f59
View file https://github.com/NativeScript/android/blob/8eb0b8682c6026a39187ecf15dc08b67958995f6/test-app/runtime/src/main/java/com/tns/Runtime.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2016/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2016/files#diff-cf9bb4e9ca1a476cacd6e270fc8bcd12c71f89d52d272915bc99df57b3581f59
https://github.com/NativeScript/android/pull/2016/files#diff-cf9bb4e9ca1a476cacd6e270fc8bcd12c71f89d52d272915bc99df57b3581f59
test-app/tools/package-lock.jsonhttps://github.com/NativeScript/android/pull/2016/files#diff-eb3215e4b5525082511f5614b97a11f5494c8272275b95e7d90dd30eedc8d939
View file https://github.com/NativeScript/android/blob/8eb0b8682c6026a39187ecf15dc08b67958995f6/test-app/tools/package-lock.json
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/NativeScript/android/pull/2016/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.