Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data


< > BotCompany Repo | #1004783 // Try structure/unstructure with non-static self-referencing inner class

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1840L/12K/40K).


sclass A {
  B b;
  class B {
    A a() { ret A.this; }

p {
  new A a;
  A.B b = B;
  a.b = b;
  S s = structure(b);
  b = (A.B) unstructure(s);
  assertNotNull("b.a", b.a());
  s = structure(a);
  a = (A) unstructure(s);
  assertNotNull("a", a);
  assertNotNull("a.b", a.b);
  assertSame("a.b.a", a, a.b.a());

Author comment

Began life as a copy of #1004781

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004783
Snippet name: Try structure/unstructure with non-static self-referencing inner class
Eternal ID of this version: #1004783/1
Text MD5: 2d2a90404cebcb499bfa721f84ea426f
Transpilation MD5: 93e5c95229317cc336b3ea9153ee6816
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-30 23:10:57
Source code size: 390 bytes / 27 lines
Pitched / IR pitched: No / No
Views / Downloads: 452 / 518
Referenced in: [show references]