René's URL Explorer Experiment


Title: [BUG] Pow.pow silently wraps when the result exceeds long range · Issue #7751 · TheAlgorithms/Java · GitHub

Open Graph Title: [BUG] Pow.pow silently wraps when the result exceeds long range · Issue #7751 · TheAlgorithms/Java

X Title: [BUG] Pow.pow silently wraps when the result exceeds long range · Issue #7751 · TheAlgorithms/Java

Description: Description com.thealgorithms.maths.Pow.pow(int a, int b) multiplies into a long without checking whether the result is representable. For example, Pow.pow(2, 63) mathematically equals 9223372036854775808, which is greater than Long.MAX_...

Open Graph Description: Description com.thealgorithms.maths.Pow.pow(int a, int b) multiplies into a long without checking whether the result is representable. For example, Pow.pow(2, 63) mathematically equals 922337203685...

X Description: Description com.thealgorithms.maths.Pow.pow(int a, int b) multiplies into a long without checking whether the result is representable. For example, Pow.pow(2, 63) mathematically equals 922337203685...

Opengraph URL: https://github.com/TheAlgorithms/Java/issues/7751

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Pow.pow silently wraps when the result exceeds long range","articleBody":"### Description\n\n`com.thealgorithms.maths.Pow.pow(int a, int b)` multiplies into a `long` without checking whether the result is representable. For example, `Pow.pow(2, 63)` mathematically equals 9223372036854775808, which is greater than `Long.MAX_VALUE`, but Java long overflow causes the method to return `Long.MIN_VALUE`. That is a plausible-looking but incorrect result for a utility documented as computing a power and returning a long.\n\n### Steps to reproduce\n\n1. Call `Pow.pow(2, 63)` (or `Pow.pow(2, 64)`).\n2. Observe the returned value: `Long.MIN_VALUE` for the first call, and `0` for the second, due to overflow wrapping.\n\n### Excepted behavior\n\nWhen the exact result cannot fit in a `long`, the method should detect overflow and report it (for example, by throwing `ArithmeticException`), or explicitly document wraparound as its intended behavior.\n\n### Screenshots\n\n_No response_\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/Prasad-Pitke","@type":"Person","name":"Prasad-Pitke"},"datePublished":"2026-11-12T03:33:31Z","url":"https://github.com/TheAlgorithms/Java/issues/7751"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:786ec493-4dbd-01fa-affa-4dcc6732aeb5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD820:2F9412:30379F:41111D:6AFA8A24
html-safe-nonce2efff04bb541ed194eab048edc5702444e199826cc42049b088c713d792147b7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODIwOjJGOTQxMjozMDM3OUY6NDExMTFEOjZBRkE4QTI0IiwidmlzaXRvcl9pZCI6IjQ0ODc2MTU5MzQxNDMwNDAwMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0fd9ac23eaea159783e14a1477f0b696bf99f31be96b0604b393efcb1f96a570
hovercard-subject-tagissue:6342160347
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TheAlgorithms/Java/7751/issue_layout
twitter:imagehttps://opengraph.githubassets.com/93aefae59004397e8eb6fafc5a8785629f9972fab180167ba0fd0dbd22d56ae1/TheAlgorithms/Java/issues/7751
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/93aefae59004397e8eb6fafc5a8785629f9972fab180167ba0fd0dbd22d56ae1/TheAlgorithms/Java/issues/7751
og:image:altDescription com.thealgorithms.maths.Pow.pow(int a, int b) multiplies into a long without checking whether the result is representable. For example, Pow.pow(2, 63) mathematically equals 922337203685...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePrasad-Pitke
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/TheAlgorithms/Java git https://github.com/TheAlgorithms/Java.git
octolytics-dimension-user_id20487725
octolytics-dimension-user_loginTheAlgorithms
octolytics-dimension-repository_id63477660
octolytics-dimension-repository_nwoTheAlgorithms/Java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63477660
octolytics-dimension-repository_network_root_nwoTheAlgorithms/Java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/TheAlgorithms/Java/issues/7751#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FJava%2Fissues%2F7751
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%2FTheAlgorithms%2FJava%2Fissues%2F7751
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=TheAlgorithms%2FJava
Reloadhttps://github.com/TheAlgorithms/Java/issues/7751
Reloadhttps://github.com/TheAlgorithms/Java/issues/7751
Reloadhttps://github.com/TheAlgorithms/Java/issues/7751
TheAlgorithmshttps://github.com/TheAlgorithms
Javahttps://github.com/TheAlgorithms/Java
Codehttps://github.com/TheAlgorithms/Java
Issues3 (3)https://github.com/TheAlgorithms/Java/issues
Pull requests17 (17)https://github.com/TheAlgorithms/Java/pulls
Actionshttps://github.com/TheAlgorithms/Java/actions
Security and qualityhttps://github.com/TheAlgorithms/Java/security
Insightshttps://github.com/TheAlgorithms/Java/pulse
https://github.com/TheAlgorithms/Java
New issuehttps://github.com/login?return_to=https://github.com/TheAlgorithms/Java/issues/7751
New issuehttps://github.com/login?return_to=https://github.com/TheAlgorithms/Java/issues/7751
#7752https://github.com/TheAlgorithms/Java/pull/7752
[BUG] Pow.pow silently wraps when the result exceeds long rangehttps://github.com/TheAlgorithms/Java/issues/7751#top
#7752https://github.com/TheAlgorithms/Java/pull/7752
bughttps://github.com/TheAlgorithms/Java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/Prasad-Pitke
Prasad-Pitkehttps://github.com/Prasad-Pitke
on Nov 12, 2026https://github.com/TheAlgorithms/Java/issues/7751#issue-6342160347
Prasad-Pitkehttps://github.com/Prasad-Pitke
bughttps://github.com/TheAlgorithms/Java/issues?q=state%3Aopen%20label%3A%22bug%22
on Nov 12, 2026https://github.com/TheAlgorithms/Java/issues/7751#event-35869492122
DenizAltunkapanhttps://github.com/DenizAltunkapan
completedhttps://github.com/TheAlgorithms/Java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#7752https://github.com/TheAlgorithms/Java/pull/7752
on Nov 14, 2026https://github.com/TheAlgorithms/Java/issues/7751#event-36115240779
Sign up for freehttps://github.com/signup?return_to=https://github.com/TheAlgorithms/Java/issues/7751
Sign in to commenthttps://github.com/login?return_to=https://github.com/TheAlgorithms/Java/issues/7751
bughttps://github.com/TheAlgorithms/Java/issues?q=state%3Aopen%20label%3A%22bug%22
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.