GitXplorerGitXplorer
d

java6-polyfill

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
24d2a38c9a7876e0118d98a3ac847b90cff1f434

doc why it won't work

committed 8 years ago
Unverified
83baf3b5c1d81e34976231e9b1a45cb1714b2150

hide java 6 stuff

committed 8 years ago
Unverified
c1eb4fed0a3095daa8b246455e4abb3c1b549bb9

Optional from open idk

committed 8 years ago
Unverified
66f63de8ddf68bf9c76db74d95eb0dfdefa2017c

project setup thanks intellij

committed 8 years ago
Unverified
e771b01eca9d44798be3dfef2aa68efa77361957

Update README.md

ddrdamour committed 8 years ago
Unverified
80ade350a4d3c9f5cce964609c4f5f3d15397624

Initial commit

ddrdamour committed 8 years ago

README

The README file for this repository.

java6-polyfill

Fill in java 8 types for libs that want to run on java6 and java8

How it works

You have a lib targeting java6 but you know it will be used in java8. You want to offer some methods that return java8 types, right? but they just aren't on your classpath.

Well...add this lib as a provided dependency to your java6 lib and you can compile and test some basic java 8 functions in java6. Include this lib in your java 6 runtime environment..but when your lib is in java 8 don't bother...and magic!

Why

Have you ever been on one of those legacy platforms that still is java 6 or java 7?

TODO

Figure out how to get past the restricted class loader, maybe with an agent? http://stackoverflow.com/questions/3804442/why-java-lang-securityexception-prohibited-package-name-java-is-required