Java code generator doesn't work with version 5.0.2
122 views
Skip to first unread message
Marek Błaszczyk
unread,
Nov 25, 2022, 3:59:45 AM11/25/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to StarUML
Java code generator doesn't generate code for class associations. For previous versions (4.x.x) it works great.
StarUML
unread,
Nov 25, 2022, 10:04:51 PM11/25/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to StarUML
Hello,
Could you report the issue in the below form?
Thanks,
-------
Bug/Problem Report
If you want to report bugs, please include following information:
Issue Title (Name of bug)
Environment (OS version, StarUML version)
Action Performed (The action that resulted in the bug. Describe step by step)
Step 1: ...
Step 2: ...
Step 3: ...
Expected Result (How the software should have performed)
Actual Result (How the software actually performed)
Supplements (optional, but strongly required)
Error Dump (Select Debug -> Show DevTools and Copy the error messages in Console Tab)
Capture screenshot or video (if UI errors)
Attach your working file (.mdj), (if possible)
2022년 11월 25일 금요일 오후 5시 59분 45초 UTC+9에 Marek Błaszczyk님이 작성:
Marek Błaszczyk
unread,
Nov 26, 2022, 11:50:08 AM11/26/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to StarUML
Bug/issue description:
Issue Title (Java extension doesn't generate code for associations)
Environment (Windows 11, StarUML 5.0.2)
Action Performed (The action that resulted in the bug. Describe step by step)
Step 1: Create new class diagram
Step 2: Add package "test"
Step 3: Add class "ClassA" with field "a1:int"
Add class
"ClassB" with field "b1:float"
Create association between ClassA and ClassB.
Set association parameters: name:conn1, end1=myClassA, end2=myClassesB, multiplicity end1=1, multiplicity end2=0..*
Generate Java code (Tools->Java->Generate code...). Select package "test" and dir where to write code.
Expected Result (How the software should have performed)
dir "test" containig two files: "ClassA" and "ClassB". In ClassA should be: "public Set<ClassB> myClassesB;" and in ClassB should be: "public ClassA myClassA;". For version 4.1.16 it works great.
Actual Result (How the software actually performed)
there is no code for assiciation in both ClassA and ClassB in version 5.0.2.
Supplements (optional, but strongly required)
Error Dump (Select Debug -> Show DevTools and Copy the error messages in Console Tab)
Error Dump is present after startup:
DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/performance-now.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/pdfkit.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/unicode-properties.cjs.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/jsbi-cjs.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/msal-node.cjs.development.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.cjs.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/agent.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/promisify.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/parse-proxy-response.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/agent.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/js-joda.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/index.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/messages.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/serializer.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/buffer-writer.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/parser.js.map: Unexpected end of JSON input DevTools failed to load source map: Could not parse content for file:///C:/Program%20Files/StarUML/resources/app.asar/src/static/buffer-reader.js.map: Unexpected end of JSON input