Commit 36f048a
committed
Fix MalformedInputException on Windows with Java 8 due to charset mismatch in stale data cache
Changed StaleHelper to always save in UTF-8 instead of
platform-dependent default charset. This ensures consistency with
AbstractJavadocMojo.isUpToDate() which reads the stale data file using UTF-8.
Previously on Windows with Java 8:
- First run: file written with Cp1252 (default charset)
- Second run: file read with UTF-8, causing MalformedInputException1 parent 20c6e04 commit 36f048a
File tree
1 file changed
+4
-20
lines changed- src/main/java/org/apache/maven/plugins/javadoc
1 file changed
+4
-20
lines changedLines changed: 4 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | 32 | | |
36 | 33 | | |
| 34 | + | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 41 | | |
58 | 42 | | |
59 | 43 | | |
| |||
72 | 56 | | |
73 | 57 | | |
74 | 58 | | |
75 | | - | |
| 59 | + | |
76 | 60 | | |
77 | 61 | | |
78 | 62 | | |
| |||
123 | 107 | | |
124 | 108 | | |
125 | 109 | | |
126 | | - | |
| 110 | + | |
127 | 111 | | |
128 | 112 | | |
129 | 113 | | |
| |||
0 commit comments