Bug 387 - Type mismatch: cannot convert from String[] to String Movie.java /gameshop/src/product
Summary: Type mismatch: cannot convert from String[] to String Movie.java /gameshop/sr...
Status: RESOLVED FIXED
Alias: None
Product: online shop management system
Classification: Unclassified
Component: Products (show other bugs)
Version: 1.0.0
Hardware: PC Windows
: Normal normal
Assignee: Samuel Yuen
URL:
Depends on:
Blocks:
 
Reported: 2020-11-01 18:33 HKT by Samuel Yuen
Modified: 2020-11-10 19:07 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Yuen 2020-11-01 18:33:01 HKT
When initialize a Movie Class Object, fail to do so.

An error takes place : 
Type mismatch: cannot convert from String[] to String from
/gameshop/src/product/Movie.java

Need Code Review.
Comment 1 Samuel Yuen 2020-11-01 18:40:55 HKT
Trying to solve it.
Comment 2 Samuel Yuen 2020-11-03 19:00:18 HKT
It happens because the method should have return an array of actors instead of one single actor.
The Class structure is modified and the method is changed.
The code is fixed now.
Comment 3 Samuel Yuen 2020-11-06 18:37:27 HKT
Steps to reproduce:
1. Run the test cases
2. Errors pop up

Test cases are expected to be run successfully.