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
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
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)
  1. Step 1: ...
  2. Step 2: ...
  3. 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
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)
    1. Step 1: Create new class diagram
    2. Step 2: Add package "test"
    3. Step 3: Add class "ClassA" with field "a1:int"
    4. Add class  "ClassB" with field "b1:float"
    5. Create association between ClassA and ClassB.
    6. Set association parameters: name:conn1, end1=myClassA, end2=myClassesB, multiplicity end1=1, multiplicity end2=0..*
    7. 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
      • Capture screenshot or video (if UI errors)
      • Attach your working file (.mdj), (if possible)
    -1669480433845.log
    test.mdj
    test_5.0.2.zip
    test_4.1.16.zip

    StarUML

    unread,
    Nov 27, 2022, 10:01:54 PM11/27/22
    to StarUML
    Thank you for your feedback. It has been posted on the issues in the Github repository.

    Thanks,

    2022년 11월 27일 일요일 오전 1시 50분 8초 UTC+9에 Marek Błaszczyk님이 작성:
    Reply all
    Reply to author
    Forward
    0 new messages