Bug 1290721
Summary: | Adding Multibyte class name Java file fails with "The public type <class name> must be defined in its own file" in business-central | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Toshiya Kobayashi <tkobayas> | ||||
Component: | Business Central | Assignee: | manstis | ||||
Status: | CLOSED EOL | QA Contact: | Jiri Locker <jlocker> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.2.0 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-03-27 19:08:11 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Toshiya Kobayashi
2015-12-11 08:49:51 UTC
Note: We can use a multibyte class name Java file and multibyte filed name in simple Drools use case. https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/I18nTest.java covers only multibyte filed name though. [Analysis] The error is raised in KieBuilderImpl.compileJavaClasses() because KieBuilderImpl.srcMfs stores the java file (あいうえお.java) path as URL encoded path "src/main/java/org/kie/example/project1/%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A.java". So failed in compilation. URL encoding is done by EncodingUtil.encodePath() Daemon Thread [http-localhost.localdomain/127.0.0.1:8080-4] (Suspended (breakpoint at line 238 in EncodingUtil)) EncodingUtil.encodePath(String) line: 238 JGitPathImpl(AbstractPath<FS>).encodePath(String) line: 256 JGitPathImpl(AbstractPath<FS>).toURIString() line: 252 JGitPathImpl(AbstractPath<FS>).toUri() line: 243 Builder.visitPaths(DirectoryStream<Path>) line: 574 Builder.visitPaths(DirectoryStream<Path>) line: 560 Builder.visitPaths(DirectoryStream<Path>) line: 560 Builder.visitPaths(DirectoryStream<Path>) line: 560 Builder.visitPaths(DirectoryStream<Path>) line: 560 Builder.visitPaths(DirectoryStream<Path>) line: 560 Builder.visitPaths(DirectoryStream<Path>) line: 560 Builder.visitPaths(DirectoryStream<Path>) line: 560 Builder.<init>(Project, IOService, KieProjectService, ProjectImportsService, List<BuildValidationHelper>, PackageNameWhiteList, LRUProjectDependenciesClassLoaderCache, LRUPomModelCache) line: 141 LRUBuilderCache.assertBuilder(Project) line: 93 LRUBuilderCache$Proxy$_$$_WeldClientProxy.assertBuilder(Project) line: not available BuildServiceImpl.doBuild(Project) line: 173 ... Created attachment 1104594 [details]
あいうえお.java
|