Skip to content

Lab 2 – Гараев Раиль#12

Open
railolog wants to merge 5 commits intoreview1from
master
Open

Lab 2 – Гараев Раиль#12
railolog wants to merge 5 commits intoreview1from
master

Conversation

@railolog
Copy link

@railolog railolog commented Nov 5, 2025

No description provided.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В рамках лабы ок, но если бы вам надо было реально рандомные строки, как бы вы делали?

return generateObject(clazz, currentDepth);
}

private Object generateObject(Class<?> clazz, int currentDepth) throws Exception {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Так как задача -- создать прям случайные объекты, то как вы думаете, достаточно ли только создания через конструктор? А если в добавок выбранный конструктор выкинет эксепшн при создании?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Есть способ узнать тип дженерика, подсказка -- наследники Type или какие то из работ одногруппников. В оплату за подсказку расскажите потом пж как работает получение типа дженерика и про затирание типов в джаве

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments