Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5015: Fix Gradle/broken task dependency and serialization #5022

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

sdedic
Copy link
Member

@sdedic sdedic commented Nov 28, 2022

During debugging of #5015, I've also encountered some broken task that depended on a non-existing class: so I wrapped task dependencies into try-catch(LinkageError).

The not serializable bug itself was caused by an improper test for primitive that passed on even some generated proxy with no package. The current version will still pass more values than just primitive wrappers (anything from java.lang).

@sdedic sdedic added the Gradle [ci] enable "build tools" tests label Nov 28, 2022
@sdedic sdedic added this to the NB16u1 milestone Nov 28, 2022
@sdedic sdedic self-assigned this Nov 28, 2022
@sdedic sdedic changed the title Fix Gradle/broken task dependency and serialization Fix #5015: Fix Gradle/broken task dependency and serialization Nov 28, 2022
@sdedic sdedic linked an issue Nov 28, 2022 that may be closed by this pull request
Copy link
Contributor

@lkishalmi lkishalmi left a comment

Choose a reason for hiding this comment

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

Looks good.

@sdedic
Copy link
Member Author

sdedic commented Nov 29, 2022

Note - the failing test is because of #4984, this PR should not have any effect on that test (negative or positive).

@sdedic
Copy link
Member Author

sdedic commented Dec 2, 2022

@lkishalmi can I merge this before #4984 fix ?

@lkishalmi lkishalmi modified the milestones: NB16u1, NB17 Dec 2, 2022
@lkishalmi
Copy link
Contributor

First this should go to master first. then it would be backported (cherry-picked) for NB16u1 as a separate PR.

@lkishalmi lkishalmi merged commit 55bc018 into apache:master Dec 2, 2022
@lkishalmi lkishalmi added the 16u1 label Dec 6, 2022
lkishalmi pushed a commit to lkishalmi/netbeans that referenced this pull request Dec 6, 2022
…pache#5022)

* Avoid failing on broken tasks during dependency inspection

* Corrected bad check for primitive class that passed also generated proxies (fixes apache#5015)
lkishalmi pushed a commit that referenced this pull request Dec 6, 2022
* Avoid failing on broken tasks during dependency inspection

* Corrected bad check for primitive class that passed also generated proxies (fixes #5015)
@lkishalmi lkishalmi removed the 16u1 label Dec 12, 2022
lkishalmi pushed a commit that referenced this pull request Dec 15, 2022
* Avoid failing on broken tasks during dependency inspection

* Corrected bad check for primitive class that passed also generated proxies (fixes #5015)
Chris2011 pushed a commit to Chris2011/netbeans that referenced this pull request Dec 15, 2022
…pache#5022)

* Avoid failing on broken tasks during dependency inspection

* Corrected bad check for primitive class that passed also generated proxies (fixes apache#5015)
pepness pushed a commit to pepness/incubator-netbeans that referenced this pull request Jan 9, 2023
…pache#5022)

* Avoid failing on broken tasks during dependency inspection

* Corrected bad check for primitive class that passed also generated proxies (fixes apache#5015)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gradle [ci] enable "build tools" tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some Gradle Projects can't be Loaded due to NotSerializableException
2 participants