Bug 387

Summary: Type mismatch: cannot convert from String[] to String Movie.java /gameshop/src/product
Product: online shop management system Reporter: Samuel Yuen <samueyuen2-c>
Component: ProductsAssignee: Samuel Yuen <samueyuen2-c>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: 1.0.0   
Hardware: PC   
OS: Windows   

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.