I’m wondering whether it’s possible to figure out if some serialVersionUID has been automatically generated (by the JVM) or whether a static one is explictly defined in the class.
Any clue if it’s possible to do, and if so how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use reflection.Here’s an example (I haven’t checked the exact contract for the serialVersionUID field, though):