Skip to content

Commit 511bdb1

Browse files
committed
Fix bad dollar in nested classes.
1 parent c7668f3 commit 511bdb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java-spaghetti-gen/src/emit/java_proxy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Class {
4444
"class {} {} {} {{",
4545
class_name,
4646
parent_type,
47-
self.java.path().as_str().replace('/', ".")
47+
self.java.path().as_str().replace('/', ".").replace('$', ".")
4848
)?;
4949

5050
// ptr field
@@ -153,7 +153,7 @@ fn java_type_name(desc: &FieldDescriptor) -> anyhow::Result<String> {
153153
// Convert JNI path to Java path
154154
return Ok(format!(
155155
"{}{}",
156-
path.replace('/', "."),
156+
path.replace('/', ".").replace('$', "."),
157157
"[]".repeat(desc.dimensions as usize)
158158
));
159159
}

0 commit comments

Comments
 (0)