Commit b453602
authored
Fix MalformedInputException on Windows with Java 8 due to charset mis… (#1274)
* 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 b913338 commit b453602
File tree
1 file changed
+9
-19
lines changed- src/main/java/org/apache/maven/plugins/javadoc
1 file changed
+9
-19
lines changedLines changed: 9 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 43 | | |
58 | 44 | | |
59 | 45 | | |
| |||
72 | 58 | | |
73 | 59 | | |
74 | 60 | | |
75 | | - | |
76 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
77 | 67 | | |
78 | 68 | | |
79 | 69 | | |
| |||
123 | 113 | | |
124 | 114 | | |
125 | 115 | | |
126 | | - | |
| 116 | + | |
127 | 117 | | |
128 | 118 | | |
129 | 119 | | |
| |||
0 commit comments