ExampleTitlesTest fails on Windows: class names are built with '/' only
维护者通常 1 天内回复
评估
调研方向
Open ExampleTitlesTest in wicket-examples and read examplePages() (around line 106) and load() (around line 114), where a .class file's relative Path is turned into a class name with .replace('/', '.'). Run mvn verify -pl wicket-examples on Windows, or reason from Path.toString() using \, to reproduce the NoClassDefFound/wrong-name error. Done means class names are built separator-independently (e.g. from the path segments rather than the string) and the test passes on Windows. Note that pull request #1971 is already open against this, so coordinate before starting.
由索引模型根据 Issue 内容生成。
描述
Problem
On Windows, mvn verify fails in wicket-examples:
ExampleTitlesTest.everyExamplePageHasATitle:54->examplePages:106->load:114 »
NoClassDefFound org/apache/wicket/examples/ajax\builtin\AjaxApplication$1
(wrong name: org/apache/wicket/examples/ajax/builtin/AjaxApplication$1)
Cause
examplePages() turns each .class file's relative Path into a class name with
.replace('/', '.'). On Windows, Path.toString() uses \ as the separator, so the
backslashes stay in the name and Class.forName fails. Linux and macOS are not
affected, and CI runs only on Ubuntu, so it does not show up there.
The test was added in f64a9ce2af ("Let every example describe itself, and build the
indexes from that").
Environment
Windows 11, JDK 25, Maven 3.10.0, current master.
- 主要语言
- Java
- 星标
- 800
- 派生
- 437
- 平均合并
- 21 小时 36 分钟
- 30 天内合并 PR
- 167
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/wicket 的其他 Issue
-
PropertyResolver fails on JDK classes with a non-public field named like the property可能已有人在做 @vaibhavgupta443 今天认领。 未关闭good first issue
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
Stop the autocomplete from accumulating request parameters while typing可能已有人在做 @aryankalantri 今天认领。 未关闭good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
Validate the report-uri value given to CSPHeaderConfiguration#reportBack可能已有人在做 @AzizOuertani 于 3 天前认领。 未关闭good first issue
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
维护者通常 6 天内回复
-
account assessment course feature lecture
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
bug db/dameng user-priority/P2
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
app:learninggoalhub enhancement good first issue
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100