Title: Static interface methods not recognized on type generics · Issue #4058 · redhat-developer/vscode-java · GitHub
Open Graph Title: Static interface methods not recognized on type generics · Issue #4058 · redhat-developer/vscode-java
X Title: Static interface methods not recognized on type generics · Issue #4058 · redhat-developer/vscode-java
Description: Following is some sample code to replicate the issue: public class Tester Open Graph Description: Following is some sample code to replicate the issue: public class Tester X Description: Following is some sample code to replicate the issue: public class Tester<T extends Thing> { public void test() { System.out.println("Testing: " + T.getStuff()); // Error is here } ...
Opengraph URL: https://github.com/redhat-developer/vscode-java/issues/4058
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Static interface methods not recognized on type generics","articleBody":"Following is some sample code to replicate the issue:\n\n```java\npublic class Tester\u003cT extends Thing\u003e {\n public void test() {\n System.out.println(\"Testing: \" + T.getStuff()); // Error is here\n }\n\n public static void main(String[] args) {\n Tester\u003cOtherThing\u003e tester = new Tester\u003c\u003e();\n tester.test();\n }\n\n}\n\ninterface Thing {\n static String getStuff() {\n return \"Stuff\";\n }\n}\n\nclass OtherThing implements Thing {\n}\n```\n\nWith this, I get a build error: `The method getStuff() is undefined for the type T Java(67108964)`. However, enabling the \"java.jdt.ls.javac.enabled\" works, but is not an ideal solution.\n\nThis occurs with the latest Language Support for Java(TM) by Red Hat - v1.42.0.","author":{"url":"https://github.com/msohaill","@type":"Person","name":"msohaill"},"datePublished":"2025-05-25T17:42:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4058/vscode-java/issues/4058"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:8fb3487b-5aeb-a113-49d2-4d6a2026da9d current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id A494:2298E8:84F62:AF218:698F9A0C html-safe-nonce 220582de0c130d632323e6fc4ef19575633795c96bcf090df67a8f30ffe9336b visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDk0OjIyOThFODo4NEY2MjpBRjIxODo2OThGOUEwQyIsInZpc2l0b3JfaWQiOiIzNjI5MDIyODk5MDE1MjI3OTE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac 21662673b58b7cfb142541777ba601a9689fd160df60029ee3243baf7f23ba3d hovercard-subject-tag issue:3089459837 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/redhat-developer/vscode-java/4058/issue_layout twitter:image https://opengraph.githubassets.com/4ef75feb38876868405ab36b88a6c287c1a26d1f923c29092a2cd262591448a5/redhat-developer/vscode-java/issues/4058 twitter:card summary_large_image og:image https://opengraph.githubassets.com/4ef75feb38876868405ab36b88a6c287c1a26d1f923c29092a2cd262591448a5/redhat-developer/vscode-java/issues/4058 og:image:alt Following is some sample code to replicate the issue: public class Tester og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username msohaill hostname github.com expected-hostname github.com None 5f47eb8d0aaafbfcb6a8220a40bd81431acf688857c575e6489670c394cfa36f turbo-cache-control no-preview go-import github.com/redhat-developer/vscode-java git https://github.com/redhat-developer/vscode-java.git octolytics-dimension-user_id 11033755 octolytics-dimension-user_login redhat-developer octolytics-dimension-repository_id 65561709 octolytics-dimension-repository_nwo redhat-developer/vscode-java octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 65561709 octolytics-dimension-repository_network_root_nwo redhat-developer/vscode-java turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 09a8136f6e8f8fd3078d54ce5f8b7adb493d44a7 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.