Title: JDK 9 module-info.java handling · Issue #75 · google/google-java-format · GitHub
Open Graph Title: JDK 9 module-info.java handling · Issue #75 · google/google-java-format
X Title: JDK 9 module-info.java handling · Issue #75 · google/google-java-format
Description: Having a module-info.java in the source set leads to unexpected format exceptions starting with src/main/java/module-info.java:1:1: error: Syntax error on token "module", package expected Solution 1 Skip module-info.java although it ends...
Open Graph Description: Having a module-info.java in the source set leads to unexpected format exceptions starting with src/main/java/module-info.java:1:1: error: Syntax error on token "module", package expected Solution ...
X Description: Having a module-info.java in the source set leads to unexpected format exceptions starting with src/main/java/module-info.java:1:1: error: Syntax error on token "module", package expected...
Opengraph URL: https://github.com/google/google-java-format/issues/75
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JDK 9 module-info.java handling","articleBody":"Having a `module-info.java` in the source set leads to unexpected format exceptions starting with\r\n\r\n```\r\nsrc/main/java/module-info.java:1:1: error: Syntax error on token \"module\", package expected\r\n```\r\n\r\nSolution 1\r\n\r\nSkip `module-info.java` although it ends with `.java` Line `Main.java`:[118](https://github.com/google/google-java-format/blob/master/core/src/main/java/com/google/googlejavaformat/java/Main.java#L118) already skips non-Java files. Could easily be handled here.\r\n\r\nSolution 2\r\n\r\nSupport `module-info.java` [syntax](http://cr.openjdk.java.net/~mr/jigsaw/spec/lang-vm.html) and reformat it as well.\r\n","author":{"url":"https://github.com/sormuras","@type":"Person","name":"sormuras"},"datePublished":"2016-09-09T10:35:28Z","url":"https://github.com/google/google-java-format/issues/75"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:7a8e9f33-dd84-ae88-0e66-e537a1a84087 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8348:2F4619:3C888:503CD:6AFBD890 |
| html-safe-nonce | 2c39a9474d7433e6d5e356cb177b6d13183ae55f6228129547f754309294c3fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzQ4OjJGNDYxOTozQzg4ODo1MDNDRDo2QUZCRDg5MCIsInZpc2l0b3JfaWQiOiIxMzI1NjA5ODMxOTk3NjI2NTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 00a3ee237849ad8a027ab572ee6ae4bab179c4d74439a930f4bc7b6785252e5b |
| hovercard-subject-tag | issue:175979026 |
| 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/google/google-java-format/75/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dea000a3d8e416b967608b029182900347e1c756612a52f641046a1f093c7399/google/google-java-format/issues/75 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dea000a3d8e416b967608b029182900347e1c756612a52f641046a1f093c7399/google/google-java-format/issues/75 |
| og:image:alt | Having a module-info.java in the source set leads to unexpected format exceptions starting with src/main/java/module-info.java:1:1: error: Syntax error on token "module", package expected Solution ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sormuras |
| hostname | github.com |
| expected-hostname | github.com |
| None | 18742cb872ec73544356e60359266b67aafece70c4ce008042e06227924cdd07 |
| turbo-cache-control | no-preview |
| go-import | github.com/google/google-java-format git https://github.com/google/google-java-format.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 35448780 |
| octolytics-dimension-repository_nwo | google/google-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35448780 |
| octolytics-dimension-repository_network_root_nwo | google/google-java-format |
| 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 | 820be804f18e1ef3940bd74a00d41d73d02e2b91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width