Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9235985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:10:53+00:00 2026-06-18T07:10:53+00:00

I am currently working on a platform which makes heavy use of dynamic byte

  • 0

I am currently working on a platform which makes heavy use of dynamic byte code modification routines via the ASM library. I have been able to successfully instrument all required system classes apart from the array class. (i.e String[], int[], etc) this is because the array class is, itself, a dynamic type thus there is actually no class file in the rt.jar to instrument as far as i’m aware.

However, It did occur to me that even the array type extends java.lang.Object so although modifying the Object class would be less than ideal, not least because it would cause any changes to be propagated to all sub classes, it would possibly allow me to indirectly add an extra primitive field to the array class which, incidentally, is all i’m seeking to achieve.

Aside from the obvious caveats I’ve mentioned would this cause any other platform related problems?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:10:54+00:00Added an answer on June 18, 2026 at 7:10 am

    Instead of instrumenting Object, the simplest thing to do is replace it with a compiled version of your choice. Assuming this works, you can instrument it to make it more portable.

    Note: I have found JVMs don’t like Object to have additional methods (If you add more than one you get strange errors)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a cross platform application in Java which currently works nicely on
I'm currently working on a cross-platform application (Win/OSX/iOS) which has a C++ (with Boost)
On ubuntu I currently have haskell-platform 2011.2.0.1.2 installed, and I am currently working on
I'm working on building the Boost platform for a currently unsupported toolchain. Obviously we'd
I am currently working on a java-base cross-platform software distributor and I chose to
I am currently working on a php/javascript project which retrieves information from a database
currently I am working on a Qt application running on an Embedded platform (i.MX53).
I'm currently working on large C++ Qt based project which is a about to
I am developing application which intend to be cross platform. I used to use
I'm currently working on a cross-platform task scheduler, but I'm having a problem with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.