Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0014190 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
design defect | [Openbravo ERP] 00. Application dictionary | major | always | 2010-08-15 23:21 | 2022-02-01 08:08 | ||||||
Reporter | rafaroda | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | low | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | ||||||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | ||||||
Product Version | 2.50MP20 | SCM revision | |||||||||
Review Assigned To | |||||||||||
Web browser | |||||||||||
Modules | Core | ||||||||||
Regression level | |||||||||||
Regression date | |||||||||||
Regression introduced in release | |||||||||||
Regression introduced by commit | |||||||||||
Triggers an Emergency Pack | No | ||||||||||
Summary | 0014190: Can't export module developed with non-Western base language | ||||||||||
Description | Modules with base language Japanese (or any other language with no Western characters) can not be exported. Besides, the Java generated in src-gen is not usable since characters are not correctly parsed. Characters, even with accents, are not properly parsed generating odd Java classes, for instance public final static String PROPERTY_ = ""; See error output: generate.entities.quick: [workflow] Adding param: /opt/OpenbravoERP/src/org/openbravo/base/gen/gen_entity.oaw [workflow] Adding param: -pob.properties.location=/opt/OpenbravoERP/config/Openbravo.properties [workflow] Adding param: -pbase.src.gen=/opt/OpenbravoERP/src-gen [workflow] Adding param: --ant [workflow] 2 [main] ERROR de.hunsicker.jalopy.language.java - PARSER_ERROR [workflow] /tmp/hybridlabs-beautifier1041962550425130696java:70:58: expecting TRIPLE_DOT, found ')' [workflow] at antlr.Parser.match(Parser.java:211) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.variableLengthParameterDeclaration(InternalJavaParser.java:5146) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parameterDeclarationList(InternalJavaParser.java:4043) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classField(InternalJavaParser.java:3018) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classBlock(InternalJavaParser.java:2457) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classDefinition(InternalJavaParser.java:710) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.typeDefinitionInternal(InternalJavaParser.java:632) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.typeDefinition(InternalJavaParser.java:465) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parse(InternalJavaParser.java:296) [workflow] at de.hunsicker.jalopy.language.JavaRecognizer.parse(JavaRecognizer.java:588) [workflow] at de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1226) [workflow] at org.hybridlabs.source.beautifier.JavaBeautifier.createJavaNode(JavaBeautifier.java:64) [workflow] at org.hybridlabs.source.beautifier.JavaImportBeautifierImpl.organizeImports(JavaImportBeautifierImpl.java:155) [workflow] at org.hybridlabs.source.beautifier.JavaImportBeautifierImpl.beautify(JavaImportBeautifierImpl.java:127) [workflow] at org.hybridlabs.source.formatter.JavaImportBeautifier.beautify(JavaImportBeautifier.java:72) [workflow] at org.openbravo.base.gen.OBJavaBeautifier.beautify(OBJavaBeautifier.java:51) [workflow] at org.hybridlabs.source.formatter.JavaImportBeautifier.beforeWriteAndClose(JavaImportBeautifier.java:124) [workflow] at org.openarchitectureware.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:97) [workflow] at org.openarchitectureware.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:91) [workflow] at org.openarchitectureware.xpand2.output.OutputImpl.closeFile(OutputImpl.java:150) [workflow] at org.openarchitectureware.xpand2.ast.FileStatement.evaluateInternal(FileStatement.java:85) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:171) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:198) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:148) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:171) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:198) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:170) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.Generator.invokeInternal2(Generator.java:247) [workflow] at org.openarchitectureware.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:164) [workflow] at org.openarchitectureware.workflow.lib.AbstractWorkflowComponent2.invoke(AbstractWorkflowComponent2.java:38) [workflow] at org.openarchitectureware.workflow.container.CompositeComponent.internalInvoke(CompositeComponent.java:95) [workflow] at org.openarchitectureware.workflow.container.CompositeComponent.invoke(CompositeComponent.java:84) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.executeWorkflow(WorkflowRunner.java:339) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.run(WorkflowRunner.java:256) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.main(WorkflowRunner.java:208) [workflow] 147 [main] ERROR org.hybridlabs.source.beautifier.JavaImportBeautifierImpl - Error during beautification. Content: [workflow] /* [workflow] ************************************************************************* [workflow] * The contents of this file are subject to the Openbravo Public License [workflow] * Vers... [workflow] /tmp/hybridlabs-beautifier1041962550425130696java:72:5: expecting EOF, found '}' [workflow] at antlr.Parser.match(Parser.java:211) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parse(InternalJavaParser.java:308) [workflow] at de.hunsicker.jalopy.language.JavaRecognizer.parse(JavaRecognizer.java:588) [workflow] at de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1226) [workflow] at org.hybridlabs.source.beautifier.JavaBeautifier.createJavaNode(JavaBeautifier.java:64) [workflow] at org.hybridlabs.source.beautifier.JavaImportBeautifierImpl.organizeImports(JavaImportBeautifierImpl.java:155) [workflow] at org.hybridlabs.source.beautifier.JavaImportBeautifierImpl.beautify(JavaImportBeautifierImpl.java:127) [workflow] at org.hybridlabs.source.formatter.JavaImportBeautifier.beautify(JavaImportBeautifier.java:72) [workflow] at org.openbravo.base.gen.OBJavaBeautifier.beautify(OBJavaBeautifier.java:51) [workflow] at org.hybridlabs.source.formatter.JavaImportBeautifier.beforeWriteAndClose(JavaImportBeautifier.java:124) [workflow] at org.openarchitectureware.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:97) [workflow] at org.openarchitectureware.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:91) [workflow] at org.openarchitectureware.xpand2.output.OutputImpl.closeFile(OutputImpl.java:150) [workflow] at org.openarchitectureware.xpand2.ast.FileStatement.evaluateInternal(FileStatement.java:85) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:171) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:198) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:148) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:171) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:198) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:170) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.Generator.invokeInternal2(Generator.java:247) [workflow] at org.openarchitectureware.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:164) [workflow] at org.openarchitectureware.workflow.lib.AbstractWorkflowComponent2.invoke(AbstractWorkflowComponent2.java:38) [workflow] at org.openarchitectureware.workflow.container.CompositeComponent.internalInvoke(CompositeComponent.java:95) [workflow] at org.openarchitectureware.workflow.container.CompositeComponent.invoke(CompositeComponent.java:84) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.executeWorkflow(WorkflowRunner.java:339) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.run(WorkflowRunner.java:256) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.main(WorkflowRunner.java:208) [javac] Compiling 473 source files to /opt/OpenbravoERP/build/classes [javac] /opt/OpenbravoERP/src-gen/org/openbravo/example/spanish/SALARY.java:70: <identifier> expected [javac] public void set(org.openbravo.model.ad.system.Client ) { [javac] ^ [javac] /opt/OpenbravoERP/src-gen/org/openbravo/example/spanish/SALARY.java:71: illegal start of expression [javac] set(PROPERTY_, ); [javac] ^ [javac] 2 errors | ||||||||||
Steps To Reproduce | Having installed the Japanese Translation module http://forge.openbravo.com/projects/JpnTrans [^] 0) Create a new module with language Japanese (Japan) selected [0] 1) Develop a new window for this module [1]. Don't forget to Synchronize Terminology! 2) ant export.database [0] http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/How_To_Create_and_Package_a_Module [^] [1] http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/How_to_develop_a_new_window [^] | ||||||||||
Proposed Solution | Do not allow to insert non-basic characters in the column names. | ||||||||||
Tags | dev-platform-quick-wins | ||||||||||
Attached Files | OBJECTIVE.java [^] (5,661 bytes) 2010-08-16 00:11 | ||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||||||||||||||||
|
Notes | |
(0029968) rafaroda (developer) 2010-08-15 23:22 |
Any language can be used as a base for a module http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Concepts/Multi-Language_and_Translations#Module.27s_language [^] See also related issue 0014173 Can't export module developed in Spanish: INCORRECT_CLIENT_ORG_PROPERTY_NAME |
(0029969) rafaroda (developer) 2010-08-16 00:11 |
Please notice that the code generated in src-gen for a module with base language Spanish is in the form (see file OBJECTIVE.java attached): * public static final String PROPERTY_ENTIDAD = "entidad"; * public static final String PROPERTY_ORGANIZACIN = "organizacin"; (notice that รณ has been skipped) * public void setEntidad(Client entidad) { set(PROPERTY_ENTIDAD, entidad); } * public Organization getOrganizacin() { return (Organization) get(PROPERTY_ORGANIZACIN); } * public void setDescripcin(String descripcin) { set(PROPERTY_DESCRIPCIN, descripcin); } * public void setCreadoPor(User creadoPor) { set(PROPERTY_CREADOPOR, creadoPor); } |
(0052485) AugustoMauch (administrator) 2012-09-24 23:31 |
Impact: low Plan: long |
Issue History | |||
Date Modified | Username | Field | Change |
2010-08-15 23:21 | rafaroda | New Issue | |
2010-08-15 23:21 | rafaroda | Assigned To | => alostale |
2010-08-15 23:21 | rafaroda | Relationship added | related to 0014173 |
2010-08-15 23:21 | rafaroda | Issue Monitored: rafaroda | |
2010-08-15 23:22 | rafaroda | Note Added: 0029968 | |
2010-08-16 00:11 | rafaroda | File Added: OBJECTIVE.java | |
2010-08-16 00:11 | rafaroda | Note Added: 0029969 | |
2010-08-16 08:05 | alostale | Assigned To | alostale => mtaal |
2010-08-16 08:05 | alostale | Status | new => scheduled |
2010-08-16 11:04 | rafaroda | Steps to Reproduce Updated | View Revisions |
2010-08-17 18:51 | rafaroda | Assigned To | mtaal => alostale |
2010-08-17 18:51 | rafaroda | Proposed Solution updated | |
2010-08-18 09:10 | rafaroda | Relationship added | related to 0014184 |
2010-08-30 15:37 | rafaroda | Tag Attached: dev-platform-quick-wins | |
2010-08-30 16:39 | rafaroda | Relationship added | related to 0013275 |
2012-03-06 12:29 | alostale | Type | defect => design defect |
2012-09-24 23:31 | AugustoMauch | Note Added: 0052485 | |
2012-09-24 23:31 | AugustoMauch | Priority | normal => low |
2017-03-31 14:36 | alostale | Status | scheduled => acknowledged |
2017-04-10 14:34 | alostale | Assigned To | alostale => platform |
2022-02-01 08:08 | alostale | Assigned To | platform => Triage Platform Base |
Copyright © 2000 - 2009 MantisBT Group |