René's URL Explorer Experiment


Title: Regression in PyArray.pyset() for Boolean output setter · Issue #411 · jython/jython · GitHub

Open Graph Title: Regression in PyArray.pyset() for Boolean output setter · Issue #411 · jython/jython

X Title: Regression in PyArray.pyset() for Boolean output setter · Issue #411 · jython/jython

Description: Jython 2.7.4 breaks old (proper) behavior exhibited by 2.5.2 and below for java receiver type expecting boolean[] array causing regression. Jython 2.7.4 impl: (broken) jython/src/org/python/core/PyArray.java Lines 2213 to 2220 in 3f256f4...

Open Graph Description: Jython 2.7.4 breaks old (proper) behavior exhibited by 2.5.2 and below for java receiver type expecting boolean[] array causing regression. Jython 2.7.4 impl: (broken) jython/src/org/python/core/Py...

X Description: Jython 2.7.4 breaks old (proper) behavior exhibited by 2.5.2 and below for java receiver type expecting boolean[] array causing regression. Jython 2.7.4 impl: (broken) jython/src/org/python/core/Py...

Opengraph URL: https://github.com/jython/jython/issues/411

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression in PyArray.pyset() for Boolean output setter","articleBody":"Jython 2.7.4 breaks old (proper) behavior exhibited by 2.5.2 and below for java receiver type expecting boolean[] array causing regression.\n\n**Jython 2.7.4 impl**: (broken)\nhttps://github.com/jython/jython/blob/3f256f4a79c828d8f1a3f3b95cad8c55ba1ddd0b/src/org/python/core/PyArray.java#L2213-L2220\n\n**Jython 2.5.2 impl**: (works)\nhttps://github.com/jython/jython/blob/85c0618a617f742b67e457e2674a88feba49e9b8/src/org/python/core/PyArray.java#L1470-L1477\n\n\nIn jython 2.5.2, for boolean array java receiver type, `ex: someFunc(boolean[] array)`, the input value whatever it was ie primitive-java/object-java/python type was being converted to java type using Py.tojava(value, type).\n\nBut in jython 2.7.4, for the same receiver type, the input value matters if it is java-primitive/java-object/python type since not all of the java-Object types implement __nonzero__() and PyBoolean type is for python boolean values, currently the incoming java-object values all default to PyObject base impl for __nonzero() **which just returns true always**.\nhttps://github.com/jython/jython/blob/3f256f4a79c828d8f1a3f3b95cad8c55ba1ddd0b/src/org/python/core/PyObject.java#L316-L318\n\nThis causes the inputs to the java-receiver function be all true, irrespective of what input was supplied from python script.\nex:\n\n```java\npublic class UnitUnderTest{\n    public void someFunc(boolean[] array){\n        if (array == null) {\n            System.out.println(\"null\");\n            return;\n        }\n\n        System.out.print(\"[\");\n        for (int i = 0; i \u003c array.length; i++) {\n            System.out.print(array[I]);\n            if (i \u003c (array.length-1)){\n                System.out.print(\", \");\n            }\n        }\n        System.out.print(\"]\");\n    }\n}\n```\n\n```python\nimport java.lang.Boolean as Boolean\nimport java.lang.Boolean as Integer\n\na = [Boolean(0), Boolean(1), Boolean(0)]         # java-object [\u003cjava.lang.Boolean\u003e, \u003cjava.lang.Boolean\u003e, \u003cjava.lang.Boolean\u003e]\nb = [0, 1, 0]                                    # python         [\u003cinteger\u003e, \u003cinteger\u003e, \u003cinteger\u003e]\nc = [Integer(0), Integer(1), Integer(0)]         # java-object [\u003cjava.lang.Integer\u003e, \u003cjava.lang.Integer\u003e, \u003cjava.lang.Integer\u003e]\n# d = [boolean(0)]                                 # INVALID - because python doesnt have a boolean keyword and cannot be imported as object unlike java.lang.Boolean.        \n\nimport UnitUnderTest as uut\n\nuut.someFunc(a)             # prints all values as true ?!\nuut.someFunc(b)             # prints properly due to int values being python type (PyInteger) and all python types implement non-zero()\nuut.someFunc(c)             # prints all values as true ?! \n```\n\n```python\n\n######## jython 2.5.2 output #######\n[false, true, false]                                # WORKS\n[false, true, false]                                # WORKS\nERROR: Arg Integer can't be coerced into boolean.   # WORKS! by throwing error\n\n```\n\n```python\n\n######## jython 2.7.4 output #######\n[true, true, true]      # FAIL!\n[false, true, false]    # WORKS\n[true, true, true]      # FAIL!\n\n```","author":{"url":"https://github.com/mahee96","@type":"Person","name":"mahee96"},"datePublished":"2026-01-09T17:48:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/411/jython/issues/411"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ad606155-dbd7-cb05-6ff4-f3c17dd3d792
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDE2C:54B94:8EE5CF:C7FFFE:696E61E6
html-safe-nonced3a0a2ff48a2486aaec2ab0e593b2e2dc006391ad6b8c415443a87de19cb38a7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTJDOjU0Qjk0OjhFRTVDRjpDN0ZGRkU6Njk2RTYxRTYiLCJ2aXNpdG9yX2lkIjoiNjA5MjE2NzQxODk5NTQzMzk1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace918d5307012e979b8d1d0d35f571e728c4441f7d8da9df1e4112605d4a6129d
hovercard-subject-tagissue:3797818648
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/jython/jython/411/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cdf89f3af26cd64952825c264792d7939667df9dfe01e910a5ece3302434610a/jython/jython/issues/411
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cdf89f3af26cd64952825c264792d7939667df9dfe01e910a5ece3302434610a/jython/jython/issues/411
og:image:altJython 2.7.4 breaks old (proper) behavior exhibited by 2.5.2 and below for java receiver type expecting boolean[] array causing regression. Jython 2.7.4 impl: (broken) jython/src/org/python/core/Py...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemahee96
hostnamegithub.com
expected-hostnamegithub.com
None99a4a74f92e7618f6e15b4dbb9f4470c8d31701a90d89c21ff31970528b7f0c3
turbo-cache-controlno-preview
go-importgithub.com/jython/jython git https://github.com/jython/jython.git
octolytics-dimension-user_id10533356
octolytics-dimension-user_loginjython
octolytics-dimension-repository_id282480317
octolytics-dimension-repository_nwojython/jython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id282480317
octolytics-dimension-repository_network_root_nwojython/jython
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
releaseef0d97829e997c64864f25a29b00067f5dc3a4c4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/jython/jython/issues/411#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjython%2Fjython%2Fissues%2F411
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjython%2Fjython%2Fissues%2F411
Sign up https://patch-diff.githubusercontent.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=jython%2Fjython
Reloadhttps://patch-diff.githubusercontent.com/jython/jython/issues/411
Reloadhttps://patch-diff.githubusercontent.com/jython/jython/issues/411
Reloadhttps://patch-diff.githubusercontent.com/jython/jython/issues/411
jython https://patch-diff.githubusercontent.com/jython
jythonhttps://patch-diff.githubusercontent.com/jython/jython
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fjython%2Fjython
Fork 225 https://patch-diff.githubusercontent.com/login?return_to=%2Fjython%2Fjython
Star 1.5k https://patch-diff.githubusercontent.com/login?return_to=%2Fjython%2Fjython
Code https://patch-diff.githubusercontent.com/jython/jython
Issues 102 https://patch-diff.githubusercontent.com/jython/jython/issues
Pull requests 6 https://patch-diff.githubusercontent.com/jython/jython/pulls
Actions https://patch-diff.githubusercontent.com/jython/jython/actions
Projects 0 https://patch-diff.githubusercontent.com/jython/jython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/jython/jython/security
Please reload this pagehttps://patch-diff.githubusercontent.com/jython/jython/issues/411
Insights https://patch-diff.githubusercontent.com/jython/jython/pulse
Code https://patch-diff.githubusercontent.com/jython/jython
Issues https://patch-diff.githubusercontent.com/jython/jython/issues
Pull requests https://patch-diff.githubusercontent.com/jython/jython/pulls
Actions https://patch-diff.githubusercontent.com/jython/jython/actions
Projects https://patch-diff.githubusercontent.com/jython/jython/projects
Security https://patch-diff.githubusercontent.com/jython/jython/security
Insights https://patch-diff.githubusercontent.com/jython/jython/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/jython/jython/issues/411
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/jython/jython/issues/411
Regression in PyArray.pyset() for Boolean output setterhttps://patch-diff.githubusercontent.com/jython/jython/issues/411#top
https://github.com/mahee96
https://github.com/mahee96
mahee96https://github.com/mahee96
on Jan 9, 2026https://github.com/jython/jython/issues/411#issue-3797818648
jython/src/org/python/core/PyArray.javahttps://github.com/jython/jython/blob/3f256f4a79c828d8f1a3f3b95cad8c55ba1ddd0b/src/org/python/core/PyArray.java#L2213-L2220
3f256f4https://patch-diff.githubusercontent.com/jython/jython/commit/3f256f4a79c828d8f1a3f3b95cad8c55ba1ddd0b
jython/src/org/python/core/PyArray.javahttps://github.com/jython/jython/blob/85c0618a617f742b67e457e2674a88feba49e9b8/src/org/python/core/PyArray.java#L1470-L1477
85c0618https://patch-diff.githubusercontent.com/jython/jython/commit/85c0618a617f742b67e457e2674a88feba49e9b8
jython/src/org/python/core/PyObject.javahttps://github.com/jython/jython/blob/3f256f4a79c828d8f1a3f3b95cad8c55ba1ddd0b/src/org/python/core/PyObject.java#L316-L318
3f256f4https://patch-diff.githubusercontent.com/jython/jython/commit/3f256f4a79c828d8f1a3f3b95cad8c55ba1ddd0b
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.