• Post Reply Bookmark Topic Watch Topic
  • New Topic

Recompiling the core Java API packages  RSS feed

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JDK comes with the source code of the core java api packages. For testing and debugging purposes, I want to modify the behaviour of some of the standard java packages. Let's say, I want to modify the java.util.ArrayList. I tried to recompile from the supplied src the java.util.ArrayList class. But it gives me "error: Class names, 'java.util.ArrayList', are only accepted if annotation processing is explicitly requested". What's wrong with this?
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are by the JVM license explicitly prohibited from modifying the core Java API packages.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!